title: Async image file save
body: <p>In a web mvc project.</p>
  
  <p>I have the following function I am trying to make async as I save many files and its a bit slow. Do I need to add to a list of tasks and await all:</p>
  
  <pre><code>   var fs = new FileSaver();
          property.FloorPlanPath = fs.SaveFile(propertyRentalForm.FloorPlanFile, "~/uploads/properties/floorplans");
          property.FloorPlan2Path = fs.SaveFile(propertyRentalForm.FloorPlan2File, "~/uploads/properties/floorplans");
          property.EpcPath = fs.SaveFile(propertyRentalForm.EpcFile, "~/uploads/properties/epc");
  
      public string SaveFile(HttpPostedFileBase file, string uploadPath)
      {
  
          if (file == null || file.ContentLength &lt;= 0) return "";
          var fileName1 = Path.GetFileName(file.FileName);
          if (fileName1 == null) return "";
          // clean file name
          fileName1 = string.Format("{0}{1}",
              Path.GetFileNameWithoutExtension(fileName1).GetAliasTitle(),
              Path.GetExtension(fileName1));
  
          var path = Path.Combine(HttpContext.Current.Server.MapPath(uploadPath), fileName1);
          file.SaveAs(path);
          return fileName1;
      }
  </code></pre>