Im building a site were users can upload images and then "use" them. What I would like some thoughts and ideas about is how to manage temporary uploads.
For example, a user uploads an image but decides not to do anything with it but just leaves the site. I have then either uploaded the file to the server or loaded it to the server memory. But how do I know when the image can be removed? First I thought of just having a temporary upload folder which is emptied periodically but it feels like there must be something better to do?
Btw im using cakephp, mysql, although images are stored on the server and only the location is stored in the db.
Cheers Bjorn