Skip to content

Support for Streaming Large File Uploads (GB-level) in Crow 1.2.0 (C++14 Environment) #1064

Description

@elecfreaks1

Hi, I'm currently using Crow 1.2.0 in an embedded environment with C++14 support, and I'm trying to implement a file upload feature that supports large files (up to GB-level).

However, I noticed that the crow::request::body is returned as a std::string, which implies that the entire request body is read into memory at once. This behavior is problematic when dealing with large file uploads, as it may easily lead to OOM (Out of Memory) errors on resource-constrained embedded systems.

❓ My Questions:
Does Crow currently support streaming or chunked reading of the request body?
If not, are there any recommended workarounds or design patterns to implement streaming behavior manually?
Is there a plan to support asynchronous or stream-based request body handling in future versions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssue can be closed by providing information

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions