Re: Upload Button Not working in firefox 2.0

  •  12-26-2008, 3:38 PM

    Re: Upload Button Not working in firefox 2.0

    Hi,
     
    You can try the UploadPersistedFile or UploadAttachments .
     
    They can help you hode the file temporary, and then you can use it in other events.
     
    for example , you put an UploadPersistedFile object ID=UploadPersistedFile1 :
     
    void Button_Click(...)
    {
        //if do not have uploaded a file
        if(UploadPersistedFile1.File==null)return;
     
        string folder = Server.MapPath("~/MyFiles");
        string savepath = System.IO.Path.Combine(folder, UploadPersistedFile1.File.FileName);
        UploadPersistedFile1.File.MoveTo(savepath);
        ProcessFlvFile(savepath);
    }
     
    Regards,
    Terry
     
View Complete Thread