10
Cleanup of temporary files after exports have been processed/uploaded
Source: outline/outline#5450 · opened by @soulchild
My understanding is that before any exports are uploaded to S3, the ZIP archives are written to the /tmp directory.
Unfortunately, the temporary files are never explicitly cleaned up which might potentially lead to disk space issues. IMHO leaving this to the OS is not optimal, because tmp cleanup only happens when rebooting the machine/VM - or restarting the Docker container in our case.
I tracked down the export functionality to this [code path]( It should be easy to delete the temporary file returned by this.export() once the S3 upload succeeds. Would you be interested in a PR to address this? Cheers!
Unfortunately, the temporary files are never explicitly cleaned up which might potentially lead to disk space issues. IMHO leaving this to the OS is not optimal, because tmp cleanup only happens when rebooting the machine/VM - or restarting the Docker container in our case.
I tracked down the export functionality to this [code path]( It should be easy to delete the temporary file returned by this.export() once the S3 upload succeeds. Would you be interested in a PR to address this? Cheers!
No pledges yet. Be the first to back this.
Comments
Similar requests
Feature Request: List previously uploaded attachments
9 votes · 0 comments
Is there a manual method in the UI to trigger cleanup?
1 vote · 0 comments
PSA/Beware: DRAFTs not included in EXPORTS
1 vote · 0 comments
Support additional filetypes (.pdf, .doc, .ppt) for file upload
2 votes · 0 comments
Add folder / folder structure
7 votes · 0 comments
No comments yet.