title: C# Azure Upload Files to "File Storage Service" - not Blob Storage
body: <p>I have a requirement to upload files to <em>Azure File Storage</em> service C#, (not Blob Storage), I searched a lot but I don't find how, only find info of how to do it for Blob Storage, It seems that it's not supported or I'm searching bad.</p>
  
  <p>I'm able to get until here, but there's no <code>UploadFromStream()</code> method like in blob</p>
  
  <pre><code>FileInfo file = new FileInfo(@"C:\...\file.txt");
  CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
  CloudFileClient fileClient = storageAccount.CreateCloudFileClient();
  CloudFileShare share = fileClient.GetShareReference(ConfigurationManager.AppSettings["ShareReference"]);
  CloudFileDirectory root = share.GetRootDirectoryReference();
  CloudFileDirectory dir = root.GetDirectoryReference("TESTDIR");
  
  using (FileStream fs = file.OpenRead())
  {
      // what should I do here
  }
  </code></pre>
  
  <p>Is it possible to upload the file like this?<br>
  In which case what am I missing?</p>