Upload a file to the AdvancedWebServer example using curl
Posted: Sun Aug 15, 2021 3:30 pm
I am looking at the AdvancedWebServer example:
https://github.com/espressif/arduino-es ... dWebServer
And I am wondering if I had a file named "text.js" that I wanted to upload to an ESP32 running that example with ip address 192.168.0.36, what would the command line look like?
My guess was:
But that did not work...
https://github.com/espressif/arduino-es ... dWebServer
And I am wondering if I had a file named "text.js" that I wanted to upload to an ESP32 running that example with ip address 192.168.0.36, what would the command line look like?
My guess was:
Code: Select all
$ curl -X POST -F 'file=@text.js' -H "Content-Type: application/json" http://192.168.0.36/edit