title: Amazon S3 video upload issue for the iOS SDK v2
body: <p>Dear developers i have issue that is connected with Amazon S3 video upload.</p>
  
  <p>I am using iOS SDK V2 for arrange interaction between iOS Client and Amazon. I already read all documentation and investigate manuals that were provider by the developers from the Amazon and some issues occurs that are not documented.</p>
  
  <p><strong>I will start explaining problem from very beginning.</strong></p>
  
  <p>1) <em>Authentication, i am using STS approach to authenticate users for the Amazon s3 request.
  This steP is not a point due to that i am using this authentication configuration to upload images as well and everything work perfectly.</em></p>
  
  <p>2)  <em>For the uploading of the Video file i am using:</em></p>
  
  <blockquote>
    <p>AWSS3TransferManager</p>
  </blockquote>
  
  <p>Sample code of the uploading:</p>
  
  <pre><code>AWSS3PutObjectRequest *logFile = [AWSS3PutObjectRequest new];
    logFile.bucket = uploadTokenData_.bucket;
    logFile.key = key;
    logFile.contentType = contentType;
    logFile.body = data_;
    logFile.contentLength = [NSNumber numberWithInteger:[data_ length]];
  
  AWSS3 *S3 = [[AWSS3 alloc] initWithConfiguration:[AWSCredentialsProvider runServiceWithStsCredential]];
  
  AWSS3TransferManager *transferManager = [[AWSS3TransferManager alloc] initWithS3:S3];
  
  [[transferManager.s3 putObject:logFile] continueWithBlock:^id(BFTask *task)
  {
  
    NSLog(@"Error : %@", task.error);
    if (task.error == nil)
    {
      NSLog(@"Uploadet");
    }
  }
  </code></pre>
  
  <p>3) <em>Problems that occure.</em></p>
  
  <p>1) -1001: Almost immediate error response for the s3 file uploading to be more precise i will provide you debug line of the response from Amazon.</p>
  
  <blockquote>
    <p>AWSiOSSDKv2 [Debug] AWSSignature.m line:642 |
    -[AWSS3ChunkedEncodingInputStream nextChunk] | stream read: 32677, chunk size: 32768</p>
    
    <p>Domain=NSURLErrorDomain Code=-1001 "The request timed out."</p>
  </blockquote>
  
  <p>2) It stack on random chunk of the file and stop uploading it to the server.And write network connection is lost, but Internet connection is up.</p>
  
  <blockquote>
    <p>Error Domain=NSURLErrorDomain Code=-1005 "The network connection was
    lost."</p>
  </blockquote>
  
  <p>4) <em>Conclusion</em></p>
  
  <p>But nevertheless this approach upload video files to the Amazon from time to time and it is quite strange.For example from very morning i upload video file for 77 MB and now each time i receive.</p>
  
  <blockquote>
    <p>Domain=NSURLErrorDomain Code=-1001</p>
  </blockquote>
  
  <p>If someone know or even have some ideas how to solve this problem please give me some advise.</p>
  
  <p>Thanks a lot for your time!</p>