Hi Renzo….
I want to create ESP32 as FTP Server with SD Card but it is failed. So, I will to explain what I have done as below.
1. I have try it without SD Card so it means I use SPIFFS methode and you see the arduino code on picture 1 & its FtpServerKey.h file also on picture 8, picture 9, picture 10 and picture 11.
2. Then I have setting in the FileZilla, you can see on picture 3, picture 4, picture 5, picture 6 and picture 7.
3. Then I upload the arduino codes successfully, you can see on picture 2.
4. Then I connect the FileZilla and the directory is successfully listing, you can see on picture 12.
5. Then I try to upload and download the file is success, you can see on picture 13 and picure 14.
6. After that I try using SD Card and I edit the arduino code, you can see on picture 15.
7. Then I also change #define DEFAULT_STORAGE_TYPE_ESP32 STORAGE_SPIFFS with #define DEFAULT_STORAGE_TYPE_ESP32 STORAGE_SD in FtpServerKey.h file, you can see on picture 16.
8. Then I upload the arduino codes successfully, you can see on picture 17.
9. Setting’s FileZilla is same as before, so connect it directly. the directory is successfully listing, you can see on picture 18.
10. After that, I try to download and upload the file but it was unsuccessful.
Can you assit me to solve this, maybe there is something wrong with arduino code or anything ? Thank you in advanced. All picture I attached in 1 pdf file (Discuss.pdf)
OK for:
–>show SD card all folder and file
–>Download file from ESP32 FTP Server(SD Card) is OK
Problem:Upload to ESP32 FTP Server not possible.
Using FileZilla Client (i also use other FTP Client software WinSCP)
FileZilla Client config:
Protocol:FTP
Host:192.168.0.101 Port:21
Encryption:only use plain FTP(insecure)
Login Type:Normal
User:My ESP32 FTP server user
Password:My ESP32 FTP server password
Error for Upload:
Status: Connecting to 192.168.0.101:21…
Status: Connection established, waiting for welcome message…
Status: Plain FTP is insecure. Please switch to FTP over TLS.
Status: Logged in
Status: Retrieving directory listing…
Status: Directory listing of “/” successful
Status: Starting upload of D:\test1.txt
Command: TYPE A
Response: 200 TYPE is now ASCII
Command: PASV
Response: 227 Entering Passive Mode (192,168,0,101,195,89)
Command: STOR test1.txt
Error: Disconnected from server: ECONNABORTED – Connection aborted
Error: File transfer failed
Status: Connecting to 192.168.0.101:21…
Status: Connection established, waiting for welcome message…
Status: Plain FTP is insecure. Please switch to FTP over TLS.
Status: Logged in
Status: Starting upload of D:\test1.txt
Status: Retrieving directory listing of “/”…
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (192,168,0,101,195,89)
Command: MLSD
Response: 150 Accepted data connection to port 50009
Response: 226-options: -a -l
Response: 226 5 matches total
Command: TYPE A
Response: 200 TYPE is now ASCII
Command: PASV
Response: 227 Entering Passive Mode (192,168,0,101,195,89)
Command: STOR test1.txt
Error: Disconnected from server: ECONNABORTED – Connection aborted
Error: File transfer failed
Status: Connecting to 192.168.0.101:21…
Status: Connection established, waiting for welcome message…
Status: Plain FTP is insecure. Please switch to FTP over TLS.
Status: Logged in
Status: Starting upload of D:\test1.txt
Status: Retrieving directory listing of “/”…
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (192,168,0,101,195,89)
Command: MLSD
Response: 150 Accepted data connection to port 50009
Response: 226-options: -a -l
Response: 226 5 matches total
Command: TYPE A
Response: 200 TYPE is now ASCII
Command: PASV
Response: 227 Entering Passive Mode (192,168,0,101,195,89)
Command: STOR test1.txt
Error: Connection timed out after 20 seconds of inactivity
Error: File transfer failed
Can you help me. 6 day lot of thing try but not work. 🙁
Maintaining a repository (or site or forum) is a lot like tending to a garden - it requires constant care and attention to keep it thriving. If you're a skilled gardener (or coder!) and want to help keep our repository blooming, we'd love to have you on board! We're also looking for talented writers and forum moderators to help us grow our community. Interested in joining our team? Don't hesitate to reach out and let us know how you can contribute!
Are you a fan of electronics or programming? Share your knowledge with others, write a simple tutorial or how to make a great project Contact me: share_your_ideas@mischianti.org
The content displayed on this website is protected under a CC BY-NC-ND license. Visitors are prohibited from using, redistributing, or altering any content from this website for commercial purposes, including generating revenue through advertising. Any unauthorized use is a violation of the license terms and legal action may be taken against individuals or entities found to be in violation.
You must also provide the link to the source.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.