Skip to content

Uploads over 32 MB leave a temporary file behind #263

Description

@SirLouen

Go keeps any uploaded file over 32 MB in a temporary file while the handler reads it. The server only deletes that file for the original request, but the media and theme upload handlers receive a copy of the request made by the router and middleware, so the file is never deleted. Every media upload between 32 MB and the 128 MB cap, and every theme archive over 32 MB, leaves a file the size of the upload in the temporary folder until the host clears it. The same happens when an upload names the wrong form field. Both handlers should remove the form's temporary files once they are done with the request.

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

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions