Skip to content

Loads whole file into memory while uploading to backend #4

@sexnine

Description

@sexnine

Especially when uploading large files on memory-limited systems, the backend will try allocating a lot of memory for the file and can panic if there is not enough memory, causing the upload to be incomplete and downcat to crash.

For some reason, the file's data is not being freed from memory until the whole file has been written to disk.

Possible solutions for this issue:

  • Freeing memory while parts of the file is written
  • Limiting the request so only a certain amount can be in memory at one time.

Unfortunately, I've tried to implement these solutions but I'm too dumb to solve them :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions