|
@ -3755,6 +3755,8 @@ void convertUtf8ToAscii(String utf8String, char *asciiString) { |
|
|
// requires a GET parameter path, as directory path to the file
|
|
|
// requires a GET parameter path, as directory path to the file
|
|
|
void explorerHandleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) { |
|
|
void explorerHandleFileUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) { |
|
|
|
|
|
|
|
|
|
|
|
lastTimeActiveTimestamp = millis(); |
|
|
|
|
|
|
|
|
// New File
|
|
|
// New File
|
|
|
if (!index) { |
|
|
if (!index) { |
|
|
String utf8FilePath; |
|
|
String utf8FilePath; |
|
@ -3788,8 +3790,6 @@ void explorerHandleFileUpload(AsyncWebServerRequest *request, String filename, s |
|
|
&fileStorageTaskHandle /* Task handle. */ |
|
|
&fileStorageTaskHandle /* Task handle. */ |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
lastTimeActiveTimestamp = millis(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (len) { |
|
|
if (len) { |
|
|