New answers tagged post
I'd go in reverse order. Make file submission happen last then use crontab to delete garbage data at frequent intervals. If the data being submitted is small enough, then use PHP sessions or cookies to store the basic information then when the files are submitted, then store the basic info from the cookies or sessions to the database and then you won't ...
Do you write to 2 different tables like... tblTmpUpload id file_path timestamp tblUpload id file_path otherstuff timestamp If so, you could query the tblTmpUpload and look for files w/ a timestamp more than 24 hours old and remove the file based on file path stored.
Top 50 recent answers are included