是否有可能上传到直接从URL使用POST S3?有可能、直接、URL、POST

2023-09-11 08:22:21 作者:时间才是第三者

我知道有一种方法可以使用​​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.

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

Example, upload a file that resides at https://m.xsw88.com/allimgs/daicuo/20230911/3491.png.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

 
精彩推荐