Welcome Guest Search | Active Topics | Sign In | Register

EO Web Uploader error message Options
Phil
Posted: Wednesday, February 3, 2021 3:48:52 AM
Rank: Advanced Member
Groups: Member

Joined: 11/16/2010
Posts: 48
One of my customers got this error message client-side. What am I supposed to do to handle the error, where do I set ClientSideOnError and what parameters are passed to my error routine?
eo_support
Posted: Wednesday, February 3, 2021 5:03:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We can't see your image. Can you email to us? See here for our email address:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
eo_support
Posted: Thursday, February 4, 2021 3:26:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We received your image. This occurs when the user is trying to submit the page while the uploading is running. Take this page as an example:

http://demo.essentialobjects.com/Demos/AJAX%20Uploader/File%20List/Demo.aspx

There is an AJAXUploader and a Submit button. The proper sequence is for the user to upload the file first, then click "Submit" to submit the uploaded file (to trigger FileUploaded event handler so that your code can decide what to do with the newly uploaded files). If however you click "Submit" button while the upload is in progress, then you will receive this error since FileUploaded event can't be triggered at that time as file uploading is still in progress.

The recommended way to handle this situation is to disable the submit button when your upload starts and then re-enabled it after it finishes (see the demo project for sample code). You can also handle ClientSideOnError as the message suggested. See here for details on how to handle client side event:

https://www.essentialobjects.com/doc/web/clientapi_howto.aspx

And see here for the argument list of this event:

https://www.essentialobjects.com/doc/jsdoc.public.web.handlers.clientside_error_handler.aspx

You would need to write a JavaScript function with matching argument list, and set your uploader's ClientSideOnError to the name of that function.

Hope this helps. Please feel free to let us know if you still have any more questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.