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

media_upload:temporaryfile:flush command should only delete older files #48

Open
vaxul opened this issue Jun 18, 2020 · 1 comment
Open

Comments

@vaxul
Copy link

vaxul commented Jun 18, 2020

Currently media_upload:temporaryfile:flush command is removing all folder and files without questioning.

When run in a wrong time, where a website user is currently submitting files, in theory the users files would be deleted before finishing.

It might be smarter to look at the files creation dates. If they are past a defined period of time, the are more likely save to remove.

Do you have any opinion on that?

@vaxul
Copy link
Author

vaxul commented Jun 22, 2020

Currently I have to use a shortterm solution:

# Delete form uploads after 1 day
0 * * * * find /absolute/path/to/typo3/web/typo3temp/MediaUpload/* -type f -mtime +1 -delete
0 * * * * find /absolute/path/to/typo3/web/typo3temp/MediaUpload/* -type d -empty -exec rmdir {} \;

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