This question is locked. New answers and comments are not allowed.
I cannot seem to find documentation on the properties of events in the Upload control. There is a rich assortment of events associated with the control, but no information on any of their properties.
I want to be able to provide a better success/error response to uploads than the examples provided in the documentation, by returning custom error messages in JSON, but the only property referenced that I could find was for OnSuccess -- e.response.status, which didn't seem to work.
I tried the following guesses for OnError but none of them worked either -- e.error, e.errormsg, e.response.error, e.response.errormsg, and e.response.status. They all returned undefined in error situations.
The documentation says to return an empty string on success, and that seems to be the only thing that doesn't generate an undefined response.
Also, I'm uploading asynchronously, using the AutoUpload = false setting. When I do that, there is no progress meter shown, like there is with AutoUpload = true. In the former case, an animation image shows, followed by a green dot on success, or a red dot on error. Is there a way to get the progress meter to show on manual uploads. (I am not referring to synchronous uploads, just manual asynchronous ones.)
I want to be able to provide a better success/error response to uploads than the examples provided in the documentation, by returning custom error messages in JSON, but the only property referenced that I could find was for OnSuccess -- e.response.status, which didn't seem to work.
I tried the following guesses for OnError but none of them worked either -- e.error, e.errormsg, e.response.error, e.response.errormsg, and e.response.status. They all returned undefined in error situations.
The documentation says to return an empty string on success, and that seems to be the only thing that doesn't generate an undefined response.
Also, I'm uploading asynchronously, using the AutoUpload = false setting. When I do that, there is no progress meter shown, like there is with AutoUpload = true. In the former case, an animation image shows, followed by a green dot on success, or a red dot on error. Is there a way to get the progress meter to show on manual uploads. (I am not referring to synchronous uploads, just manual asynchronous ones.)