We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb98a52 commit bc09207Copy full SHA for bc09207
libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino
@@ -513,6 +513,9 @@ void handleFileUpload() {
513
}
514
DBG_OUTPUT_PORT.println(String("handleFileUpload Name: ") + filename);
515
uploadFile = fileSystem->open(filename, "w");
516
+ if (!uploadFile) {
517
+ return returnFail("CREATE FAILED");
518
+ }
519
DBG_OUTPUT_PORT.println(String("Upload: START, filename: ") + filename);
520
} else if (upload.status == UPLOAD_FILE_WRITE) {
521
if (uploadFile) {
0 commit comments