是否有可能上传到直接从URL使用POST S3? [英] Is it possible to upload to S3 directly from URL using POST?

查看:388
本文介绍了是否有可能上传到直接从URL使用POST S3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一种方法可以使用​​POST而无需进入后台服务器中的文件浏览器上传到S3直接。但是,有没有办法从URL,而不是网页浏览器做到这一点。

I know there is a way to upload to S3 directly from the web browser using POST without the files going to your backend server. But is there a way to do it from URL instead of web browser.

例如,使用上传后驻留在 http://example.com/dude.jpg 直接到S3的文件。我的意思是我不想要的资产下载到我的服务器,然后将其上传到S3。我只想做一个POST请求到S3,它会自动上传了。

Example, upload a file that resides at http://example.com/dude.jpg directly to S3 using post. I mean I don't want to download the asset to my server then upload it to S3. I just want to make a POST request to S3 and it uploads it automatically.

推荐答案

我发现了一些细节这篇文章。你可能会需要修改你的水桶'的安全设置以某种方式,让这种类型的互动。

I found this article with some details. You will probably have to modify your buckets' security settings in some fashion to allow this type of interaction.

http://aws.amazon.com/articles/1434

将有客户端的一些安全问题,以及因为你永远不希望你的钥匙可公开访问的

There will be some security issues on the client as well since you never want your keys publicly accessible

这篇关于是否有可能上传到直接从URL使用POST S3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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