Note that there are some explanatory texts on larger screens.

plurals
  1. POtransferring large files to Amazon S3 using C# - Request aborted and Canceled
    primarykey
    data
    text
    <p>I am trying to upload a large file to Amazon S3. I first used the <code>PutObject</code> and it worked fine but took about 5 hours to upload a 2GB file. So I read some online suggestions and tried it with the <code>TransferUtility</code>.</p> <p>I have increased the timeout but this TransferUtility API always give me <code>"The request was aborted. The request was canceled."</code> error.</p> <p>code sample:</p> <pre><code>public void UploadWithMultiPart(string BucketName, string s3_key, string fileName) { var fileTransferUtility = new Amazon.S3.Transfer.TransferUtility(_accessKey, _secretKey); var request = new Amazon.S3.Transfer.TransferUtilityUploadRequest() .WithBucketName(BucketName) .WithKey(s3_key) .WithFilePath(fileName) .WithTimeout(60*60*1000*100) .WithPartSize(1024 * 1024 * 100) .WithCannedACL(S3CannedACL.PublicRead) .WithStorageClass(S3StorageClass.ReducedRedundancy); request.Timeout = 60*60*1000*100; fileKey = s3_key; request.UploadProgressEvent += new EventHandler&lt;UploadProgressArgs&gt;(uploadRequest_UploadPartProgressEvent); //.with = 30000 // .AddHeader("x-amz-acl", "public-read") fileTransferUtility.Upload(request); } public void Upload(string BucketName, string s3_key, string fileName) { Amazon.S3.Model.PutObjectRequest request = new Amazon.S3.Model.PutObjectRequest(); request.WithBucketName(BucketName); request.WithKey(s3_key); request.WithFilePath(fileName); request.Timeout = -1; request.ReadWriteTimeout = 30000; request.AddHeader("x-amz-acl", "public-read"); s3Client.PutObject(request); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload