title: Image is not saved in the folder on Server ASP.NET C# MVC
body: <p>I am saving the picture in the folder in asp.net mvc on local server it is working fine and image is saved in the folder, but on the server image is not saved in the folder I don't know about the issue, but without picture product is uploaded successfully on the server too. here is my code for saving pic in the folder.</p>
  
  <pre><code>public ActionResult Package(PackageDO model, HttpPostedFileBase file)
      {
          try
          {
                  if (file != null)
                  {
                      fileName = System.Guid.NewGuid().ToString() + System.IO.Path.GetExtension(file.FileName);
                      string physicalPath = Path.Combine(Server.MapPath("~/Images/Uploads/" + fileName));
                      // save image in folder
                      file.SaveAs(physicalPath);
                  }
           }
      }
  </code></pre>
  
  <p>My View looks like</p>
  
  <pre><code>@using (Html.BeginForm("Package", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", id = "form1" }))
  {        
     &lt;input type="file" id="file" name="file"&gt;
  }
  </code></pre>
  
  <p>Thanks in advance.</p>