You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to validate manually uploaded files to determine if they are valid for use instead of blindly dumping them into spiffs if they are not named firmware.bin
Additional checks could be:
Only accept firmware.bin or HTML files.
Check the free space in SPIFFS and don't accept anything that is too big.
With PR #294 the upload dialog has a file mask (*.bin, *.html). Mask should prevent upload of wrong files like firmeware.elf, ...
There is no server side validation of the file or check of free space.
File mask is an easy fix that should help user to pick the right files.
We need to validate manually uploaded files to determine if they are valid for use instead of blindly dumping them into spiffs if they are not named firmware.bin
Additional checks could be:
The code to process this starts at:
SmartSpin2k/src/HTTP_Server_Basic.cpp
Line 390 in 6636057
The text was updated successfully, but these errors were encountered: