Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete files after user downloads them #55

Open
sheggen opened this issue Oct 5, 2018 · 0 comments
Open

Delete files after user downloads them #55

sheggen opened this issue Oct 5, 2018 · 0 comments

Comments

@sheggen
Copy link
Contributor

sheggen commented Oct 5, 2018

Problem: Files are left on the server after the user downloads them. This is particularly problematic when they download the entire submission set. On the production server, the 2018 set reached 92% disk space, and it filled it once the user attempted to download them all. I will be increasing the disk space on production after this round is complete, but the app/static/data/archive/ folder need to be empty most of the time (i.e., after each download, delete the file that was created) to solve the root cause.

Solution: https://stackoverflow.com/questions/24612366/flask-deleting-uploads-after-they-have-been-downloaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant