title: Can you upload S3 metadata (Specifically "Content-Language") with a file?
body: <p>Are we able to set the "Content-Language" metadata value for a file which is added to S3?</p>
  
  <p>I'm seeing conflicting answers to this (i.e. <a href="https://stackoverflow.com/questions/12290819/how-to-upload-s3-metadata-with-a-file-in-fog/12293263#12293263">How to upload S3 metadata with a file in Fog?</a> - states that it should be able to be done).</p>
  
  <p>My attempts so far have resulted in the Key being prepended with "x-amz-meta-", so the key ends up being "x-amz-meta-Content-Language" instead of just "Content-Language".</p>
  
  <p>I'm using the AWSSDK for C#:  </p>
  
  <p>Below is a snippet of the code (very basic just as an example):</p>
  
  <pre><code>var request = new PutObjectRequest
          {
              BucketName = _bucket,
              Key = filekey,
              InputStream = stream,
              CannedACL = S3CannedACL.PublicRead
          };
  
          //Add metaData collection to request
          foreach (KeyValuePair&lt;string, string&gt; currentMetaData in metaData)
          {
              request.Metadata.Add(currentMetaData.Key, currentMetaData.Value);
              //WHERE Key = "Content-Language" and Value = "en" (or es, it etc)
          }
  
          using (var client = GetS3Client())
          {
              //WHERE GetS3Client() returns an instance of Amazon.S3.IAmazonS3
              client.PutObject(request);
          }
  </code></pre>