亚马逊S3。最大对象大小亚马逊、大小、对象、最大

由网友(一隅长安)分享简介:有没有可能用水桶的策略来设置最大文件(对象)大小?我在这里找到了一个question像这样,但没有大小限制在实施例Is there a possibility to set maximum file (object) size using a bucket's policy?I found here a ques...

有没有可能用水桶的策略来设置最大文件(对象)大小? 我在这里找到了一个question像这样,但没有大小限制在实施例

Is there a possibility to set maximum file (object) size using a bucket's policy? I found here a question like this, but there is no size limitation in the examples.

推荐答案

没有,你不能用一个水桶政策,做到这一点。检查Element说明的S3文档的页面的东西,你可以在一个水桶的政策做一个详尽的清单。

No, you can't do this with a bucket policy. Check the Element Descriptions page of the S3 documentation for an exhaustive list of the things you can do in a bucket policy.

不过,您的可以的内的浏览器上传的政策文件。此功能通常用于给不可信用户编写的S3存储你的控制(如面向用户​​的媒体上传)内访问特定的键,并提供适当的工具,限制了可没有上载的位置,大小和数据类型需要暴露你的S3凭据。

However, you can specify a content-length-range restriction within a Browser Uploads policy document. This feature is commonly used for giving untrusted users write access to specific keys within an S3 bucket you control (e.g. user-facing media uploads), and it provides the appropriate tools for limiting the location, size, and data types that can be uploaded without needing to expose your S3 credentials.

阅读全文

相关推荐

最新文章