firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Add file size check when loading via webui

Open DESVOR8 opened this issue 7 months ago • 0 comments

Describe the bug: When you loading any files to littlefs via web ui you can accidentally load TOO BIG file and clog LittleFS completely, thereby bricking your gadget.

Steps To Reproduce:

  1. Open the Web UI
  2. Upload a large file (e.g., 6GB), keeping in mind that the M5StickC Plus2 only has 3MB of available LittleFS
  3. Enjoy "LittleFS is full" label on boot

Device used: M5StickC Plus2, but this issue likely affects any device capable of running the Bruce firmware.

Expected behavior: The Web UI should check the file size against the remaining free space before starting the upload.

Actual behavior: "LittleFS is full" on boot. Even if you don't restart your gadget, when you try to open "files" or perform any other operation with the storage, you will still see this dreadful message, which, upon reboot, will completely brick your gadget.

Additional context / logs: Bruce 1.13

DESVOR8 avatar Apr 11 '26 03:04 DESVOR8