title: Azure Blob Storage - Content Type Setting on Download and Upload
body: <p>I am trying to upload a word document to blob storage using C#. The code snippet is as below:</p>
  
  <pre><code>var blobServiceClient = new BlobServiceClient(connectionString);
  var containerClient = blobServiceClient.GetBlobContainerClient(container);
  containerClient.CreateIfNotExists(PublicAccessType.None);
  var blobClient = containerClient.GetBlobClient(documentName);
  using (var memoryStream = new MemoryStream({Binary of the File}))
  {
      var headers = new BlobHttpHeaders() { ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" };
      await blobClient.UploadAsync(memoryStream, httpHeaders: headers).ConfigureAwait(false);
  }
  </code></pre>
  
  <p>The document gets uploaded successfully to the Blob Storage. I can see that the content type is also being set properly while looking through Azure Storage Explorer. But, when i try to access this document (using document URL) through browser (chrome), it downloads the file as unknown file.</p>
  
  <p>I tried the same by uploading a word document through Azure Storage Explorer. This file gets downloaded as word document while downloading it through browser.</p>
  
  <p>Any idea what is going wrong?</p>