-->
Page 1 of 1

SD Card uploading from HTTP using AsynWebServer

PostPosted: Mon Mar 29, 2021 7:28 am
by Perikaruppan
Dear friends
I am trying to upload selected files from my PC to the SD card over wifi using ESP8266.

I find many programs that use web server, but I am using AsyncWebServer and the programs don't work for Async

I need to upload files to the SD card so that I can select the from the ESP and do my coding based n the text files stored in SD Card


currently I am using a regular USB to store the data onto SD, then plugging the SD into the SD card module attached to the ESP

I need someway in which I can upload my files to the SD card wirelessly

Kindly support

Re: SD Card uploading from HTTP using AsynWebServer

PostPosted: Mon Mar 29, 2021 11:22 pm
by Pablo2048
Hi,
you can try to use SPIFFSEditor with SD filesystem instead of default SPIFFS. If it works, then you can use curl to upload filesystem content.

Re: SD Card uploading from HTTP using AsynWebServer

PostPosted: Tue Mar 30, 2021 12:33 am
by Perikaruppan
Pablo2048 wrote:Hi,
you can try to use SPIFFSEditor with SD filesystem instead of default SPIFFS. If it works, then you can use curl to upload filesystem content.


Thanks Pablo. But I am not very familiar with coding in curl.

Any examples which I can look into ?

Re: SD Card uploading from HTTP using AsynWebServer

PostPosted: Tue Mar 30, 2021 11:25 pm
by Pablo2048
There is no "coding" in curl - Google is your friend. Just use POST method and don't forget to set the content type to multipart/form-data .