I am trying to create buckets and upload files to Amazon S3 using their .net SDK. I can create buckets and indicate that they will be created in the EU region. The code used to create the buckets is below
PutBucketRequest request = new PutBucketRequest();
request.WithBucketName(bucketName)
.WithBucketRegion(S3Region.EU);
client.PutBucket(request);
Then proceed to upload the file to the trash using the following code:
PutObjectRequest request = new PutObjectRequest();
request.WithBucketName(bucketName)
.WithCannedACL(S3CannedACL.PublicRead)
.WithKey(remoteFileName)
.WithInputStream(uploadFileStream);
Error loading file with the error "Maximum retry attempts reached."
Can someone tell me what else I need to do to make the download work?
Thank.
EDIT: Attempting to upload a file to the same bucket using the AWS Management Console works fine.
source
share