You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Download for small files works well. But when the files are lager the first part of the file looks pretty good but for the rest garbage is inserted. The zip contains the original file (input.svg) and the downloaded file (output.svg). files.zip
The code:
if (request->hasParam("filename", true)) { // Download oder Delete
if (request->hasArg("download")) { // Datei download
Serial.println("Download Filename: " + request->arg("filename"));
AsyncWebServerResponse *response = request->beginResponse(SPIFFS, request->arg("filename"), String(), true);
response->addHeader("Server", "ESP Async Web Server");
request->send(response);
}