title: file saved path on Azure
body: <p>I'm new to .NET Core and Azure I have created an API with SQL-Server and I used Dapper for saving the path to the database for POST form-data with an image, like this:</p>
  
  <pre><code>private async Task&lt;string&gt; WriteFile(Image image)
  {
      String fileName;
      IFormFile file = image.image;
      long Id = image.ShopId;
  
      try
      {
          var extension = "." + file.FileName.Split('.')[file.FileName.Split('.').Length - 1];
          fileName = Guid.NewGuid().ToString() + extension; 
          var path = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot\\cccc", fileName);
  
          using (var bits = new FileStream(path, FileMode.Create))
          {
              await file.CopyToAsync(bits);
          }
  
          Image imageupload = new Image(path,Id);
  
          toDb(imageupload);
      }
      catch (Exception e)
      {
          return e.Message;
      }
  
      return fileName;
  }
  
  public void toDb(Image imageUpload)
  {
      string path = imageUpload.path;
      long ShopId = unchecked((int)imageUpload.ShopId);
  
      using (IDbConnection dbConnection = Connection)
      {
          string sQuery = "UPDATE shop SET path = @path WHERE ShopId = @ShopId ;"; 
  
          dbConnection.Open();
          dbConnection.Execute(sQuery, new {path = path,ShopId = ShopId});
      }
  }
  </code></pre>
  
  <p>Before I deployed to Azure it returned image path <code>"F:\\xxxx\\yyyyy\\zzzzzz\\aaaaaa\\wwwroot\\bbbbbb\\5d665cbc-679d-4926-862b-4e10f9358e8a.png"</code></p>
  
  <p>After i deployed it return my image path </p>
  
  <pre><code>D:\\home\\site\\wwwroot\\wwwroot\\Shops\\a81c757e-df7e-4cf6-b778-20fc5fcf922d.png
  </code></pre>
  
  <p>can i view image by using this path if it possible how it view;
  If the error is my path that file tried to save to how can I fix it? If I changed saved path to <code>wwwroot\\bbbbbb\\5d665cbc-679d-4926-862b-4e10f9358e8a.png</code> can I viewed file it from client app if its also not possible. How can i fixed this?</p>