In one of application developed using Asp.Net, I want to allow users to upload documents/ images to a specific folder. I am getting error access denied while uploading to the folder. How can I grant write permissions to the folder. Any suggestions ?
Right-click the folder, select Properties, and then select the Security tab. Click Edit. In the Permissions dialog box, select DefaultAppPool (or any other application pool you use) and then select the Write check box in the Allow column. More information can be found here .
Are you trying to upload in javascript from the web browser? Or is the server (ASP.NET) application uploading?
S3 resources are private by default.
Assuming it is your ASP.NET server application that is uploading the files to the bucket, you have some options.
You could use a bucket policy to allow certain IAM users write access. For example, the IAM user your ASP.NET application has credentials for. This tutorial explains how to do this: http://docs.aws.amazon.com/AmazonS3/latest/dev/example-walkthroughs-managing-access-example1.html
Alternatively you could attach a policy to the IAM user that your ASP.NET application has credentials for. This tutorial explains how to do this: http://docs.aws.amazon.com/AmazonS3/latest/dev/example-policies-s3.html#iam-policy-ex0
If you want the client (javascript) application to do the upload and authenticate each end user, look at IAM Web Identity Federation. http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.