Page 1 of 1

Simple HTTP File Server Example upload/download to sdcard

Posted: Fri May 07, 2021 12:09 pm
by haipas
Hello,

i am trying to upload and download files to the sdcard in the example. https://github.com/espressif/esp-idf/tr ... le_serving

I have activated the option "EXAMPLE_MOUNT_SD_CARD" as written in the README.
The SD card is recognized and mounted according to the log.

However, I can't find a way to access the sdcard. With the file upload button I always write to the spiffs file system in the esp.
What is the command to get to the sdcard via the url or curl?

Thanks for your help

Re: Simple HTTP File Server Example upload/download to sdcard

Posted: Tue Apr 19, 2022 12:00 pm
by rtborg
I'd also like to know how to make the v4.4 example read/write to SD card. It is mounted fine, but the file server operates on spiffs only.

Re: Simple HTTP File Server Example upload/download to sdcard

Posted: Mon May 09, 2022 8:28 pm
by Fredckx
Anyone listening here? I have the same problem. ESP-IDF 4.4.1 file_serving example, SD card enabled via menuconfig. Files doe not seem to be saved to SD.

Re: Simple HTTP File Server Example upload/download to sdcard

Posted: Mon May 16, 2022 8:43 am
by ESP_Mahavir
Can you please try this example from latest `release/v4.4` branch? Example was fixed for SD card support in https://github.com/espressif/esp-idf/co ... fb54d1e759, this fix shall be part of v4.4.2 release.