亚马逊 S3.最大对象大小 [英] Amazon S3. Maximum object size

查看:11
本文介绍了亚马逊 S3.最大对象大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用存储桶策略设置最大文件(对象)大小?我在这里发现了一个问题,但示例中没有大小限制.

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.

推荐答案

不,您不能使用存储桶策略执行此操作.查看 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.

这篇关于亚马逊 S3.最大对象大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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