Page 1 of 1

file upload, progress bar & other data to post complication

Posted: Tue Mar 30, 2010 4:52 pm
by masipay
I am using php APC and ajax to show progress bar of a file upload. It works fine but along with the file to upload I have other items that needs to be submitted, lets just say posting a news with an image file. With Ajax implimentation file is uploaded separately by upload file handler script however because there are other data that needs to be posted, how to track this uploaded file?
if I move the uploaded file to a designated folder, the user might abort posting the news say after having uploaded the file, hence I need a way to track this uploaded file so, if the user completes posting other data then i save the file.
Other question is when a file is uploaded, how long is this file kept in the temp directory before or after having called the function 'move_uploaded_file(--)' ??

thanks