Shuvojit Halder

Shuvojit Halder

  • NA
  • 763
  • 44.2k

FCK Editor Image Upload Issue in server

May 16 2015 3:21 AM
While i was uploading the image in server it was showing "server error". For image upload i used a method. which is below. But, It is working fine in local but in server it's not working.


public void uploadnow(HttpPostedFileWrapper upload)
        {
            if (upload != null)
            {
                string ImageName = upload.FileName;
                string path = System.IO.Path.Combine(Server.MapPath("~/Uploads/Admin/"), ImageName);
                upload.SaveAs(path);
            }
        }


Answers (5)