Skip to content

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

@viafx24

Description

@viafx24

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions