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

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

问题描述

有没有可能用水桶的策略来设置最大文件(对象)大小? 我在这里找到了一个<一个href="http://stackoverflow.com/questions/8310462/amazon-s3-bucket-policy-for-anonymously-uploading-photos-to-a-bucket">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.

推荐答案

没有,你不能用一个水桶政策,做到这一点。检查<一href="http://docs.amazonwebservices.com/AmazonS3/latest/dev/AccessPolicyLanguage_ElementDescriptions.html#AvailableKeys">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.

不过,您的可以的内的内容长度范围限制://aws.amazon。 COM /用品/ 1434>浏览器上传的政策文件。此功能通常用于给不可信用户编写的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天全站免登陆