Hello! I'm using the Editor with a button to display the ImageBrowser component.
My API will return a Bad Request status code whenever the image is too large or somehow invalid to be uploaded.
I wasn't able to customize the error message displayed. Also, even though the request returns with an error, the item is displayed within the Image Browser with the loading icon.
I checked and even on the demos this is happening.
How can I have the image browser to not display items when the request (to upload) return with an error and also customize how the error message is displayed? (ie, display the string content returned by the server without prepending content to the string as the default behavior).
Thanks for helping.
My API will return a Bad Request status code whenever the image is too large or somehow invalid to be uploaded.
I wasn't able to customize the error message displayed. Also, even though the request returns with an error, the item is displayed within the Image Browser with the loading icon.
I checked and even on the demos this is happening.
How can I have the image browser to not display items when the request (to upload) return with an error and also customize how the error message is displayed? (ie, display the string content returned by the server without prepending content to the string as the default behavior).
Thanks for helping.