上传文件直接到S3与进度条 [英] Upload File Directly to S3 with Progress Bar

查看:3040
本文介绍了上传文件直接到S3与进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于这个问题,<一个href="http://stackoverflow.com/questions/117810/upload-files-directly-to-amazon-s3-from-asp-net-application">http://stackoverflow.com/questions/117810/upload-files-directly-to-amazon-s3-from-asp-net-application,有没有办法做到这一点,有一个进度条?

Relating to this question, http://stackoverflow.com/questions/117810/upload-files-directly-to-amazon-s3-from-asp-net-application, is there any way to do this and have a progress bar?

----编辑----

---- EDIT ----

两天后,仍然没有运气有直接的方式。发现一件事,看起来很有希望,但不是免费: http://www.flajaxian.com/

Two days later and still no luck with a direct way. Found one thing that looks promising but not free: http://www.flajaxian.com/

使用闪存直接上传到S3有一个进度条。

Uses flash to upload directly to S3 with a progress bar.

推荐答案

我正在寻找一个解决方案,以及。也许这将是一些帮助,

I'm looking for a solution as well. Maybe this will be of some help,

从AWS开发Commnity   但是,在许多语言(PHP,JAVA),用于   大文件,你必须使用流   通过这些语言环境   将你的大文件中的一个块   另一个(以填满后   中央记忆与大量的   数据S3所需要的HTTP POST   为上载

From AWS Dev Commnity But in many languages (PHP, Java), for big files, you have to use streams through which the language environment will take chunks of your big file one after the other (in order to fill up central memory with huge amount of data for the http POST of S3 needed for the upload.

有关流的好处是,   他们有一个叫做每当回调   下一个块读出了用于进一步   PUT(在HTTPS的意义上)的数据S3。   您可以使用此回调来计算   并显示在客户端上的进展   用户界面。

The nice thing about stream is that they have a callback called whenever the next chunk is read for to further PUT (in the https sense) data to S3. You can use this callback to compute and display the progress on the client UI.

见的libcurl的文档看到   详细介绍了如何这一切工作。

See the doc of libcurl to see in details how all this works.


更新:它看起来像有两个简单的选择

Update: It looks like there are two straightforward options.

  1. 闪存,通过FileReference类
  2. 随着Java小程序
  1. Flash, via the FileReference class
  2. With a Java applet

我个人讨厌使用第三方扩展(闪存,Java)来使一个应用程序的功能,但我还没有找到另一种方式。

I personally hate using 3rd party extensions (Flash, Java) to make an app function, but I haven't found another way.

这篇关于上传文件直接到S3与进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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