From 9b4dfbd1808ea723f1d60632ca332ff1f4c6d266 Mon Sep 17 00:00:00 2001 From: Dave Allie Date: Sun, 21 Dec 2025 15:43:17 +1100 Subject: [PATCH] Allow any file to be uploaded (#84) ## Summary - Allow any file to be uploaded - Removes .epub restriction ## Additional Context - Fixes #74 --- .../network/server/CrossPointWebServer.cpp | 7 -- src/html/FilesPageFooter.html | 96 ++++++++----------- 2 files changed, 39 insertions(+), 64 deletions(-) diff --git a/src/activities/network/server/CrossPointWebServer.cpp b/src/activities/network/server/CrossPointWebServer.cpp index 61a88133..90ec915a 100644 --- a/src/activities/network/server/CrossPointWebServer.cpp +++ b/src/activities/network/server/CrossPointWebServer.cpp @@ -513,13 +513,6 @@ void CrossPointWebServer::handleUpload() { Serial.printf("[%lu] [WEB] [UPLOAD] START: %s to path: %s\n", millis(), uploadFileName.c_str(), uploadPath.c_str()); Serial.printf("[%lu] [WEB] [UPLOAD] Free heap: %d bytes\n", millis(), ESP.getFreeHeap()); - // Validate file extension - if (!isEpubFile(uploadFileName)) { - uploadError = "Only .epub files are allowed"; - Serial.printf("[%lu] [WEB] [UPLOAD] REJECTED - not an epub file\n", millis()); - return; - } - // Create file path String filePath = uploadPath; if (!filePath.endsWith("/")) filePath += "/"; diff --git a/src/html/FilesPageFooter.html b/src/html/FilesPageFooter.html index 102430a7..961753a6 100644 --- a/src/html/FilesPageFooter.html +++ b/src/html/FilesPageFooter.html @@ -3,15 +3,15 @@ CrossPoint E-Reader • Open Source

- + - + - +