Skip to content

Clean-up of /tmp files #13

Closed
Closed
@vlahan

Description

@vlahan

First of all, @git001 thanks for the very useful plugin!

During testing we noticed that the plugin is currently not removing the transient files that are kept in /tmp/systemd-private-....cady.service-.../ after a successful upload. This is leading to exhaustion of memory / filesystem space.

We resolved the issue with adding a deferred clean up:

defer r.MultipartForm.RemoveAll()

after the end of the r.ParseMultipartForm

i.e. on line

It would be great if this fix can be upstreamed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions