amazon web services - Can I limit the size of an object put into S3 via the JavaScript API? -


it possible use javascript apis upload objects s3 , possible have fine-grain authorization using iam policies. instance, see policy:

{    "version": "2012-10-17",    "statement": [      {        "action": [          "s3:putobject",          "s3:putobjectacl"        ],        "resource": [          "arn:aws:s3:::your_bucket_name/*"        ],        "effect": "allow"      },    ]  }

inspired tutorial allows put objects bucket your_bucket_name. not clear me whether possible limit number of objects , size of each objects 1 can upload. have checked list of contitions, didn't find useful on this.

i think 3 questions:

  1. is possible use javascript apis upload objects s3? (yes)
  2. is possible have fine-grained authorization using iam policies? (yes)
  3. is possible limit number of objects , size of each object 1 can upload. (no, @ least not through kind of bucket policy or without coding such restrictions js client or server proxies uploads)

see js examples , discussion of policies , 1 potential option restricting object size.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -