mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Warn about long filenames
This commit is contained in:
parent
3573c94d81
commit
f2277d57ff
@ -465,9 +465,12 @@ void handleFileUpload()
|
|||||||
}
|
}
|
||||||
if(filename.length() < 32) {
|
if(filename.length() < 32) {
|
||||||
fsUploadFile = filesystem->open(filename, "w");
|
fsUploadFile = filesystem->open(filename, "w");
|
||||||
|
filename = String(F("handleFileUpload Name: ")) + filename;
|
||||||
|
debugPrintln(filename);
|
||||||
|
} else {
|
||||||
|
filename = String(F("%sFilename is too long: ")) + filename;
|
||||||
|
errorPrintln(filename);
|
||||||
}
|
}
|
||||||
filename = String(F("handleFileUpload Name: ")) + filename;
|
|
||||||
debugPrintln(filename);
|
|
||||||
} else if(upload->status == UPLOAD_FILE_WRITE) {
|
} else if(upload->status == UPLOAD_FILE_WRITE) {
|
||||||
// DBG_OUTPUT_PORT.print("handleFileUpload Data: "); debugPrintln(upload.currentSize);
|
// DBG_OUTPUT_PORT.print("handleFileUpload Data: "); debugPrintln(upload.currentSize);
|
||||||
if(fsUploadFile) {
|
if(fsUploadFile) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user