Upload a file to the AdvancedWebServer example using curl

spierepf
Posts: 3
Joined: Sat Dec 05, 2020 3:31 am

Upload a file to the AdvancedWebServer example using curl

Postby spierepf » 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:

Code: Select all

$ curl -X POST -F 'file=@text.js' -H "Content-Type: application/json" http://192.168.0.36/edit
But that did not work...

Who is online

Users browsing this forum: Google Adsense [Bot] and 28 guests