ESP32-S3 upload file via FTP ?

Hi,

I have ESP32s3 Sense board and want to send some picture files to my web storage via FTP upload. Connection is WiFi.

Is there any example code available or do I need to use a FTP lib for Esp32s3 here ?

I tested with ESP32_FTPClient.h but could not get it running. Maybe its not for my board.

Hi band1234,

Welcome to the forum!

If you have installed the ESP32_FTPClient library, then a couple of examples should be available in the4 IDE via File → Examples…

Obviously the board would need to have established a connection to WiFi first and be able to access the FTP server IP address. If you could post your current code (within [CODE] tags please) then someone might be in with a chance of determining why it might not be not running.

If you are getting any compile errors, then post those as well (in [CODE] tags also) so we can get the full picture.

Just to conform which library you are using, could you also provide a link to the ESP32_FTP library that you are using please?

That sounds like the XIAO ESP32S3 Sense. Is it the tiny SEEED board? The problem I am having is I don’t see a board entry for it. The closest match is for the new XIAO MG24 Sense.

In any case, depending on the board you select you may or may not be able to compile that library.

Don’t forget to update the Tools settings; the default Partition Scheme doesn’t leave much.

changing the Partition Scheme to HUGE

gives some breathing room

A few more options open up if you have an 8MB Flash

Use the "XIAO_ESP32S3" board selection:

https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/#software-preparation:~:text=on%20the%20left.-,select%20XIAO_ESP32S3,-.

for XIAO ESP32S2 [sic] (Sense)

search for xiao in the development board on the left. select XIAO_ESP32S3 .

The "ESP32S2" is a typo. They meant to write "ESP32S3" (which is also not exactly technically incorrect since the correct name of the microcontroller is ESP32-S3, but Seeed Studio has the right to name their products as they like).

to be more specific: yes its about the tiny Seeed XIAO ESP32-S3 board.

I have tested with the GitHub - ldab/ESP32_FTPClient: An FTP-Client for the ESP32

I have had File>Examples>ESP32_FTPClient>download_file working on a ESP32-S3-DevKitC-1 using ESP32 core 3.3.0 without problems
using FileZilla FTP server
initially check communication with server using FileZilla FTP client

edit File>Examples>ESP32_FTPClient>download_file setting the parameters WIFI_SSID WIFI_PASS ftp_server[] ftp_user[] and ftp_pass[]

compile link and load into ESP32-S3 target - it should connect to the FTP server and upload and download files etc

you need the setup the PC firewall to allow the FTP server to open ports etc

thank you , i have not seen this exmple there. Works"! :slight_smile: