JamesBream / PixelGram

UoD CS Spring Semester Team Project
0 stars 0 forks source link

Periodic file system maintenance tool #10

Open JamesBream opened 8 years ago

JamesBream commented 8 years ago

Currently, no files get deleted from the file system. This functionality should be changed so that post deletion will remove files, however this will not account for all cases of "orphaned" files. The blueimp tool that has been implemented to upload images runs as soon as the user selects the image so that it is already uploaded by the time that the user presses the "publish" button. If the user does not publish, this means that the image will become orphaned.

We need a tool that will run and check each file in the uploads folder against the database to see if it is linked to a post. If it is not, it should be deleted. This will either have to run periodically automatically or we need to implement an interface for it to be executed from manually.