Ajax file uploader for large files not working fine

  •  01-15-2009, 7:17 AM

    Ajax file uploader for large files not working fine

    Hi everybody,
    I am using Ajax file uploader to upload large files,it uploads smoothly to a temp location but i didn't understand how can i save the file to my desired location,i found CopyTo() method but its not working idont know why.
    i am posting the code i have used:
     
    protected void FileUpload(object sender, UploaderEventArgs e)

    {

    Uploader uploader = (Uploader)sender;

    string path = Server.MapPath("Uploads");

    e.CopyTo(path + "\\" + e.FileName);

    }

    protected void Button1_Click(object sender, EventArgs e)

    {

          Uploader1.FileUploaded+=new UploaderEventHandler(FileUpload);

    }
     
    may some errors happend in my code or else i am not getting...plz help
     
    also after uploading i am getting an HTTP error like this:
     
     
    what is this...any help regarding this will appreciated
     
    Thans in advance
View Complete Thread