Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

File download inserts garbage #217

@UlliBien

Description

@UlliBien

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions