问题
Can we set the php file upload as a background process? I mean I will select files and click upload button and then close the browser. But the process should be on the back ground and after successful completion i need to update the database as well. Please advice. Thanks
回答1:
No, if you shut down the client, then the client will stop sending data to the server.
If you want to upload large files on a regular basis and not have the process be interrupted by people forgetting that their browser is uploading in another tab and quitting, then you might consider using a stand-alone upload tool (along the lines of Flickr Uploadr).
回答2:
This is easily possible with a special crafted browser that you can close but that will not be removed from processing space until file-upload request have been finished.
来源:https://stackoverflow.com/questions/7695498/upload-files-even-after-closing-the-browser