Document how to get rid of stale files

This commit is contained in:
jvoisin 2019-02-23 13:30:23 +01:00
parent 1b0333fdd5
commit 3d21f613d2

View file

@ -56,6 +56,10 @@ systemctl restart nginx/apache/…
It should now be working.
You should add `find /var/www/mat2-web/uploads/* -mtime +1 -exec rm {} \;`
in a crontab to remove files that people might have uploaded but never
downloaded.
# Threat model
- An attacker in possession of the very same file that a user wants to clean,