是否有可以生存连接中断浏览器的文件上传解决方案? [英] Is there a browser file upload solution that can survive connection interruptions?

查看:168
本文介绍了是否有可以生存连接中断浏览器的文件上传解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在寻找的任何基于浏览器的文件上传解决方案,设法生存的互联网连接中断并继续上传,商用或免费的,流程一旦连接重新建立起来。

We are looking for any browser based file upload solution, commercial or free, that manages to survive internet connection interruptions and continues the upload process once the connection is re-established.

场景:在用户体验非常不稳定的互联网连接,但需要上传高达3 MB(这听起来很低,但能真正成为一个问题)领域使用过的网站

The scenario: a website used in areas where the users experience very unstable internet connections and yet need to upload files up to 3 MB (which sounds low but can really be a problem).

有各种基于jQuery和闪存解决方案身边,像 CuteUpload ,的阿贾克斯上传等,但他们都不迄今已实施了一种机制,帮助在这样的情况。我知道,HTTP协议并不在允许继续后一种方式处理连接重置。

There are various jQuery and Flash based solutions around, like CuteUpload, Ajax Uploader and so on, but none of them has so far implemented a mechanism that helps in such a scenario. I am aware that the http protocol does not handle connection resets in a way that allows continuing a post.

一个解决方案是可以想象的,如果客户端软件知道多少已经被上载,并能上传切成块,而服务器端是足够聪明的胶水他们重新走到一起。或者,如果客户端和服务器上的块大小事先达成一致,一一列举,保持会话开放,并确保每个小片得到发货。有可能,但可能不容易写。我们正在努力.NET,但服务器平台,其实并不重要。

A solution is conceivable if the client software knows how much has been uploaded already and is able to slice the upload into chunks while the server-side is smart enough to glue them back together. Or if client and server agree on chunk sizes beforehand, enumerate them, keep the session open and make sure every little piece get shipped. Possible, but probably not easy to write. We are working on .NET, but the server platform doesn't really matter.

有没有人有一个提示去哪里找?

Does anyone have a hint where to look?

推荐答案

有针对此问题没有真正流行或知名的解决方案。我真的希望,HTML的未来版本将支持此外的开箱。

there are no really popular or well known solutions for this problem. And I really hope that future versions of HTML will support this out-of-the-box.

但现在你可以看看 http://upload.thinfile.com/upload/thin .PHP 这是一个支付工具,但你可以尝试演示是免费的。

But for now you can look at http://upload.thinfile.com/upload/thin.php which is a paid tool but you can try the demo for free.

此外,在轨道的世界里,有一个FOSS宝石 https://github.com/stakach/可恢复-​​上传

Also, in the rails world, there is a FOSS gem https://github.com/stakach/Resumable-Uploads.

他们使用的方法/做法是相当完善的,跨浏览器兼容的。

The method / approach they use is quite sound and cross browser compatible.

另外,不要寻找互联网连接中断寻找断​​点续传文件上传谷歌搜索时:)

Also, don't look for "internet connection interruptions" look for "resumable file uploads" when googling :)

这篇关于是否有可以生存连接中断浏览器的文件上传解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆