title: Upload file to Amazon S3 bucket
body: <p>I know there are lot of threads like this, I tried like 100 examples, all of them throw the same exception:</p>
  
  <blockquote>
    <p>The specified bucket is not valid.</p>
  </blockquote>
  
  <p>I contacted the s3 admin, he said, everything is correct from his side, and he said, he set full permissions, no deny statements, so we can test,
  but my app still throws the same exception, here is the code..</p>
  
  <pre><code>using Amazon;
  using Amazon.S3;
  using Amazon.S3.Transfer;
  
  namespace AmazonS3
  {
      public class FileUploader
      {
          private const string S3_Bucket_ARN = "(hidden)";
          private const string IAM_User_ARN = "(hidden)";
          private const string Access_Key_ID = "(hidden)";
          private const string Secret_access_Key = "(hidden)";
  
          public void UploadFile(string Filepath)
          {
              Program.WriteLine(MessageStatus.Neutral, "[1/4] Connecting to Amazon S3 . . .");
              using (IAmazonS3 client = new AmazonS3Client(Access_Key_ID, Secret_access_Key, RegionEndpoint.USEast1))
              {
                  Program.WriteLine(MessageStatus.Neutral, "[2/4] Preparing upload request . . .");
                  var uploadRequest = new TransferUtilityUploadRequest
                  {
                      FilePath = Filepath,
                      BucketName = S3_Bucket_ARN,
                      CannedACL = S3CannedACL.PublicRead
                  };
  
                  Program.WriteLine(MessageStatus.Neutral, $"[3/4] Uploading file: \"{Filepath}\" . . .");
                  var fileTransferUtility = new TransferUtility(client);
                  fileTransferUtility.Upload(uploadRequest);
  
                  Program.WriteLine(MessageStatus.Neutral, $"[4/4] File: \"{Filepath}\" successfully uploaded.");
              }
          }
      }
  }
  </code></pre>
  
  <p>the hidden strings are ofcourse replaced by my real credentials, I just edited them now.
  Anyway what seems incorrect here? Im stuck for days now, Thanks in advance.</p>