Re: OnFileUploaded in MagicAjax panel fires for every previously uploaded file

  •  05-27-2010, 8:22 PM

    Re: OnFileUploaded in MagicAjax panel fires for every previously uploaded file

    Olaf,
     
    It seems that , the MagicAjax can't set the new HTML correctly after ajax posting.
     
    You can try this before we fix the issue :
     
     
        protected void Uploader1_FileUploaded(object sender, UploaderEventArgs file)
        {
            // Safe uploaded file
            string targetFileName = String.Format("{0}/{1}", Constants.FilePathUpload, file.FileName);
            file.CopyTo(Path.Combine(Constants.FilePathUpload, targetFileName));
            file.Delete();
        }
     
    Or use file.MoveTo
     
    Regards,
    Terry

     
View Complete Thread