Error 403 uploading aws s3 .net

0
  

Just set the user permissions on S3 and everything worked perfectly!

I am building a function to upload images in the s3 service of Amazon but I am with a 403 error, is there any additional configuration that I should do in my S3?

            TransferUtility fileTransferUtility = new TransferUtility(code, keyCode, Amazon.RegionEndpoint.USWest2);

            var uploadRequest = new Amazon.S3.Transfer.TransferUtilityUploadRequest();

            string filename = File.FileName;

            uploadRequest.InputStream = File.InputStream;
            uploadRequest.BucketName = "kasne";
            uploadRequest.Key = filename;
            uploadRequest.StorageClass = Amazon.S3.S3StorageClass.ReducedRedundancy;
            uploadRequest.CannedACL = Amazon.S3.S3CannedACL.PublicRead;

            //faz o upload.
            fileTransferUtility.Upload(uploadRequest);

            return filename;
    
asked by anonymous 26.06.2015 / 14:23

0 answers