即使关闭浏览器也可以上传文件
我们可以将php文件上传设置为后台进程吗?我的意思是我将选择文件并单击上传按钮,然后关闭浏览器。但该过程应该在后台进行,成功完成后我还需要更新数据库。请指教。谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,如果关闭客户端,那么客户端将停止向服务器发送数据。
如果您想定期上传大文件,并且不想让人们忘记他们的浏览器正在另一个选项卡中上传并退出而中断该过程,那么您可以考虑使用独立的上传工具(类似于 Flickr 上传器)。
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).
使用特制的浏览器可以轻松实现这一点,您可以关闭该浏览器,但在文件上传请求完成之前不会将其从处理空间中删除。
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.