Stop UploadComplete event from firing?

Last post 08-28-2012, 8:48 AM by Kenneth. 5 replies.
Sort Posts: Previous Next
  •  08-23-2012, 12:06 PM 74472

    Stop UploadComplete event from firing?

    Is there a way to prevent the UploadComplete event from firing?

  •  08-24-2012, 7:58 AM 74480 in reply to 74472

    Re: Stop UploadComplete event from firing?

    Hi BenHolcombe,

     

    Can you explain your requirement in detail?  Whyyou need to prevent the UploadComplete event?

     

    If you want to handle the upload manually, please refer to example http://www.ajaxuploader.com/Demo/Start-uploading-manually.aspx 

     

    Regards,

     

    Ken 

  •  08-24-2012, 8:46 AM 74483 in reply to 74480

    Re: Stop UploadComplete event from firing?

    I am doing something similar to the example.  I am using the Java Script function mypostback to get between the mypostback and the UploadComplete.  In the CuteWebUI_AjaxUploader_OnPostback event I return false however when I later encounter a postback the UploadComplete still fires.  
  •  08-24-2012, 9:07 AM 74484 in reply to 74483

    Re: Stop UploadComplete event from firing?

    Hi BenHolcombe 

     

    The page post back is necessary, because the file needs to upload to the server. You can not prevent  the post back. I suggest you refer to the example code to handle when the file start upload. Finish all your own logic, then start the upload at last.

     

    Regards,

     

    Ken 

  •  08-24-2012, 9:23 AM 74485 in reply to 74484

    Re: Stop UploadComplete event from firing?

    Can the event be called asynchronously?  I need to keep things moving on the front end while I do additional things.  
  •  08-28-2012, 8:48 AM 74497 in reply to 74485

    Re: Stop UploadComplete event from firing?

    Hi BenHolcombe,

     

    Yes, please try demo page http://www.ajaxuploader.com/Demo/Persist-upload-file.aspx, it will keep uploading even you click on the post back button.

     

    Regards,

     

    Ken 

View as RSS news feed in XML