mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +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) {
|
||||
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) {
|
||||
// DBG_OUTPUT_PORT.print("handleFileUpload Data: "); debugPrintln(upload.currentSize);
|
||||
if(fsUploadFile) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user