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

File Deletion #5

Open
agilgur5 opened this issue Nov 10, 2014 · 3 comments
Open

File Deletion #5

agilgur5 opened this issue Nov 10, 2014 · 3 comments
Labels
kind: feature New feature or request scope: Server Related to the Server

Comments

@agilgur5
Copy link
Contributor

Delete files when a user closes the browser (before unload? or perhaps back end catch).

@agilgur5 agilgur5 added the kind: feature New feature or request label Nov 10, 2014
@agilgur5
Copy link
Contributor Author

There doesn't seem to exist a back end catch in the default session because it's cookie based (and therefore client side)... Before unload would likely work, though shouldn't be something to rely on for deletion. Would be better to either use temp files or delete files every 24 hours
http://librelist.com/browser//flask/2013/2/2/how-to-do-server-side-cleanup-on-session-expiration/#0b449dbbc32854699adf4ab3767da079

@agilgur5
Copy link
Contributor Author

Latest commit adds async deletion of files older than 24 hours whenever a session is created.
Note: If there are many users, local storage on Heroku will likely break. CDN/S3 should technically be used if there any plans on scaling

@agilgur5
Copy link
Contributor Author

@agilgur5 agilgur5 reopened this Nov 11, 2014
@agilgur5 agilgur5 added the scope: Server Related to the Server label Dec 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: feature New feature or request scope: Server Related to the Server
Projects
None yet
Development

No branches or pull requests

1 participant