Page 1 of 1

Getting rid of unused attachments

Posted: Fri Feb 22, 2008 6:20 pm
by arpowers
Hey guys,
quick question.

I you allow users to attach a file to a post, then they navigate away from the page, what is an easy way of getting rid of the unused files?

Thanks!

Re: Getting rid of unused attachments

Posted: Fri Feb 22, 2008 6:47 pm
by Christopher
Put the uploaded files in a holding directory until they complete the post. Use a cron to delete files out of the holding directory.