0

I am using Ajaxtoolkit fileupload but uploaded files are not saving in specified directory. Fileuploader is works fine but saves no file in directory, SO I checked my browser console and it says "Uncaught TypeError: Cannot read property 'cannotDeserializeEmptyString' of undefined" I want to know what it means I searched but could not find.

Here is the code behind.

protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
    {
        string fileName = Path.GetFileName(e.FileName);
        string dir = "~/Uploads/";
        AjaxFileUpload1.SaveAs(Server.MapPath(dir + fileName));
    }
ABi
  • 143
  • 2
  • 18

0 Answers0