title: C# How to Upload image from local to cloud server using amazon s3 bucket
body: <p>I am trying to transfer file from local machine to cloud server using amazon s3 bucket.
  I am stuck with the steps as i am very new to s3 bucket concept. had a code snippet example for listing files in s3 bucket, but no luck on transferring files (using c#). stuck with passing values in <code>uploadonjectfromfilepathasync()</code>. not sure what is the objectkey (2nd parameter in the menthod).</p>
  <pre><code>AmazonS3Config ClientConfig = new AmazonS3Config();
  ClientConfig.ServiceURL = S3_HOST_ENDPOINT;
  IAmazonS3 s3Client = new AmazonS3Client(S3_ACCESS_KEY, S3_SECRET_KEY, ClientConfig);
  
  var ObjectList = s3Client.UploadObjectFromFilePathAsync(S3_BUCKET_NAME,&lt;objectkey&gt;,localfilepath);
  </code></pre>