Amazon S3. Maximum object size

后端 未结 1 1367
自闭症患者
自闭症患者 2020-12-18 21:11

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.

相关标签:
1条回答
  • 2020-12-18 21:50

    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.

    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.

    0 讨论(0)
提交回复
热议问题