Upload without internet access

Hello! I need to upload files to WLED while “in the field”, without Internet access and using a wifi router for local connection. The files are .gifs for use with the Image effect.

In this topic: Issue with Editor for Mapping , I see that in order to use the /edit interface, internet access is required. Is there another way to upload files to the root folder of the ESP32? Can I use a command line utility or a CURL command?

I can connect the controller to my computer via USB-C. Is there an option to do it this way?

Thanks.

the editor requires javascript file that is not included as it is too large.

if your browser has it cached, the access will work without internet access.

you can also try if it works if you upload it to the file system of the controller. the required script is here:

https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js

You can upload any file directly using /upload endpoint. However, no checks are done an you can overwrite mandatory files if you are not careful or deliberate about it.

It does

Thank you! How could I use CURL to do that? Would it be something like:

curl -F "file=@/image.gif" 192.168.0.222/upload

What field name should I use?

I think it’s “data”, from this post. Thanks!