使用Plupload HTML5运行时直接上传到Amazon S3 [英] Upload directly to Amazon S3 using Plupload HTML5 runtime

查看:489
本文介绍了使用Plupload HTML5运行时直接上传到Amazon S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个previous后看到<一href="http://stackoverflow.com/questions/4639471/how-do-i-make-plupload-upload-directly-to-amazon-s3">How让我的Plupload直接上传到亚马逊的S3?,这是可以直接上传从Pluplod Html5的运行时S3。

I saw in one a previous post How do I make Plupload upload directly to Amazon S3?, that this is possible to direct upload from Pluplod Html5 runtime to S3.

我想你的方式通过举办我的pluploader到我的S3存储桶,但我仍然收到来自亚马逊误差

I tried your approach by hosting my "pluploader" into my S3 bucket but i am still receiving error from amazon

无法加载资源:以405状态的服务器响应(不允许的方法) XMLHtt prequest无法加载 http://xxxxxxxxx.s3.amazonaws.com/ 。产地 http://s3.amazonaws.com 不受访问控制 - 允许 - 原产地允许

Failed to load resource: the server responded with a status of 405 (Method Not Allowed) XMLHttpRequest cannot load http://xxxxxxxxx.s3.amazonaws.com/. Origin http://s3.amazonaws.com is not allowed by Access-Control-Allow-Origin

有没有人塔尔能帮助我吗?谢谢

Is there someone thar can help me ? Thanks

推荐答案

更新:亚马逊S3现在支持跨域资源共享使HTML5上传,现在应该是可能的。请参阅该文档在这里: http://docs.amazonwebservices.com/AmazonS3/latest/开发/ cors.html 这里原来的职位:的https: //forums.aws.amazon.com/message.jspa?messageID=377271#377271

UPDATE: Amazon S3 now supports Cross-Origin Resource Sharing so HTML5 uploads should now be possible. See the docs here: http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html and the original post here: https://forums.aws.amazon.com/message.jspa?messageID=377271#377271

抱歉,但亚马逊的还是不支持HTML5上传,因为他们不支持访问控制 - 允许 - 原产地头。它已经2年,还有从亚马逊在这一问题上没有取得任何进展。

Sorry, but Amazon still does not support HTML5 uploads because they do not support the Access-Control-Allow-Origin header. It's been 2 years and there is still no progress from Amazon in regard to this issue.

在你的水桶托管的iframe形式的老方法仅适用于HTML4上传,没有的使用HTML5。

The old method of hosting an iframe form in your bucket only works for HTML4 uploads, not with HTML5.

这里更多信息: https://forums.aws.amazon.com/thread.jspa?threadID=34281

此外,从Plupload家伙在这里的详细信息: http://www.plupload.com/punbb/viewtopic.php?pid = 2361#p2361

Also, more info from the Plupload guys here: http://www.plupload.com/punbb/viewtopic.php?pid=2361#p2361

如果你想使用一个标准的文件输入域上传文件到S3,我建议阅读本教程......否则你将不得不使用Flash,Silverlight的,等上载。

If you want to upload a file to S3 using a standard file input field, I would recommend reading this tutorial... otherwise you'll have to use Flash, Silverlight, etc. to upload.

http://aws.amazon.com/articles/1434? _encoding = UTF8&放大器; jiveRedirect = 1

这篇关于使用Plupload HTML5运行时直接上传到Amazon S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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