maakbaas / esp8266-iot-framework

Framework for IoT projects implementing HTTPS requests, a React web interface, WiFi manager, live dashboard, configuration manager, file manager and OTA updates.
GNU General Public License v3.0
418 stars 113 forks source link

Upload empty file failes #171

Closed riban-bw closed 9 months ago

riban-bw commented 9 months ago

An attempt to upload an empty (zero sized) file will fail. The upload page shows continous progress animation but nothing more happens.

maakbaas commented 9 months ago

I've quickly looked into this, but it seems as if the webserver does not trigger the onUpload callback in case the file is empty. This is at the side of the Async webserver library, so nothing I can fix right now. In any case, I guess uploading an empty file is not a common use case and you can just as well create a new file on the filesystem programmatically.