Hello, im using an ESP32S3 as server. Im using it to download files from an SD card. If i connect to my PC, i can download jpg and txt files without any problem. But when i try with my phone (Android) it adds an phps extension to the file (e.g. data.txt.phps).
void SD_file_download(String filename)
{
if (SD_present)
{
File download = SD_MMC.open("/"+filename);
if (download)
{
server.sendHeader("Content-Type", "text/text");
server.sendHeader("Content-Disposition", "attachment; filename="+filename);
server.sendHeader("Connection", "close");
server.streamFile(download, "application/octet-stream");
download.close();
} else ReportFileNotPresent("download");
} else ReportSDNotPresent();
}