Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Page reload after Upload Error
Page reload after Upload Error
Last post 07-05-2010, 4:07 AM by
Dac
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
06-22-2010, 1:07 PM
61939
Dac
Joined on 10-13-2009
Posts 9
Page reload after Upload Error
Reply
Quote
When I upload 1 single file and an exception is thrown server-side it triggers OnError and OnTaskError. Because there haven't been any succesful uploads the OnStop also gets triggered and there will not be a page reload.
Can I make the OnStop not stop the postback (return false doesnt work for this one) or some other mechanism (MinSucceededFiles with default 1 which I can set to 0) to still get a page reload like the one when there was a succesful file uploaded? I want to sort the presentation of the errors server-side rather then sorting it in client-side.
07-03-2010, 2:48 AM
62264
in reply to
61939
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Page reload after Upload Error
Reply
Quote
Hi,
When you upload one or multiple files,
OnStop only fired when all files are failed.
Any way, if you want to postback the page ,
How about call any button.click() to force the page postback , in the OnStop event ?
Regards,
Terry
07-05-2010, 4:07 AM
62284
in reply to
62264
Dac
Joined on 10-13-2009
Posts 9
Re: Page reload after Upload Error
Reply
Quote
Hi,
It's good to know that nothing else needs to happen after the OnStop. I have added a doPostback to the onstop and now it works fine!
Thanks for the info.
Kind regards,
Dac