file upload, progress bar & other data to post complication

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
masipay
Forum Newbie
Posts: 1
Joined: Tue Mar 30, 2010 4:43 pm

file upload, progress bar & other data to post complication

Post 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
Post Reply