上传后请求确认

I'm uploading images with AJAX and I'm looking for a way to have the processupload.php making the file ready, then ask back to the index.html for a confirmation, and first after getting the confirmation, write the file to the server and DB.

Thanks.

You can't upload a file to limbo. It's either on the server or it isn't.

The best workaround I know of for this is to save it to the server, then delete it if the user decides not to confirm within a designated time period.

Presumably your application has a database, so just add a column for confirmed, default to 0 and don't display the image anywhere unless confirmed = 1.