fa1ke5 / ESP32_FTPServer_SD_MMC

ESP32 SD_MMC ftp server
GNU Lesser General Public License v3.0
64 stars 26 forks source link

making "ESP32_FTPServer_SD_MMC" working with the ESP32-CAM #6

Open viafx24 opened 1 year ago

viafx24 commented 1 year ago

Dear fa1ke5,

Thanks for your great code. I succeeded to make it works with the ESP32-CAM but with a small (and ugly modification) because it failed without it.

I easily succeeded to connect to the esp32-CAM with filezilla and observe the content of the directory of the sd card (pictures in my case). However, i failed to download the pictures or to upload any files on the sd card. I got the error : "501 No file name"

I check the ESP32FtpServer.cpp and try a "ugly trick" to see what happens. I simply comment the if (haveParameter()) and write something ugly to be sure to DO NOT enter in the "if" leading to the '501 No file name" error.

    // if (haveParameter())
    int x = 1;
    if (x == 2)
    {
      client.println("501 No file name");
    }

I did that for the RETR command and also for the STOR command and then I could magically download and upload my pictures without problem.

I have no idea about the reason for this behaviour but i suggest, if you are still maintaining this code, to rewrite / propose a patch so users using ESP32-CAM can directly use your code without this ugly modification.

Thanks again and all the best,

Viafx24

rsemenoff commented 1 year ago

Viafx24, thanks for this. I had the same issue, and skipping the haveParameter() did fix it. Thanks!

DJprasenjit commented 6 months ago

Status: Deleting "/AnyDesk.exe" Command: DELE AnyDesk.exe Response: 501 No file name Status: Disconnected from server

while deleting or rename file same error comes with filezilla