Is it possible to resume interrupted uploads using HTTP Post? I am working on a project that uploads several files to a HTTP server. Thanks.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Assuming you have control at a low enough level on both client and server sides of this project you could achieve this via Content-Range headers in your POST (or PUT) requests that send the data.
回答2:
Yes but it seems you have to use the HTML5 file API to slice the file into chunks: http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-slicing-files
回答3:
well some more info would be useful
Most easy is using http://resumablejs.com which uses
"HTML5 file API to slice the file into chunks" (as Timmmm said)
just btw - FTP can do this as well, but it might be disabled E.g. in ProFTP it is disabled by default and a common error is not enabling it ;), you would need to add
AllowStoreRestart on
to your proftpd.conf