DustinWatts / FreeTouchDeck

For interfacing with Windows/macOS/Linux using an ESP32, a touchscreen and BLE.
https://www.youtube.com/dustinwatts
MIT License
617 stars 124 forks source link

Allow batch upload for icons #90

Closed Not-InstaGraham closed 2 years ago

Not-InstaGraham commented 2 years ago

Figured this would be helpful for testing/initial setup when a user might have to reformat the ESP and start from the beginning. Or if somebody would rather just upload all their icons in a single step rather than machine gun them through the web app.

DustinWatts commented 2 years ago

The AsyncWebserver I am using on the ESP32, should be able to handle multiple file uploads at once. Maybe it is a simple as changing this line in the index.html:

929:<input form="uploadfile" type="file" name="name" accept=".bmp"><br /><br />

to

929:<input form="uploadfile" type="file" name="name" accept=".bmp" multiple><br /><br />

I will try as soon as I have time. If someone else wants to test... feel free! 😄

DustinWatts commented 2 years ago

Let's see if this works for everyone 😄

Off course this is not in the release yet. So only manually compiling and uploading is needed.

DustinWatts commented 2 years ago

Well, it works for me so I'm closing this for now. Feel free to re-open if there are any issues.