When trying to upload large files that exceeds the maxAllowedContentLength, the upload dialog gives a generic error. Is there some way of giving the user a better message when the upload fails because of large file size?
Do you see the error message like I see "Timed out, or max file size exceeded"?If you want to customize the error message, you can add your own message as in my example below
<?xml version="1.0" encoding="utf-8"?>
<language name="English" id="en">
<errormessage>My custom error message</errormessage>
I will also report a bug to the CMS UI team to improve the error message. I will inform you once the bug is approved.
The only error message in the upload dialog is "Failed" (or in our case "Mislyktes" since the current language is Norwegian). I can't upload the image since world.optimizely.com has an error:
Uncaught TypeError: Cannot read properties of undefined (reading 'split') at HTMLDocument.<anonymous> (common?v=ppeWo317gMlYRrZyPbE9XjcY7UngAIL1SnSdiOiOfUU1:8:812) at l (jquery.min.js:2:29375) at c (jquery.min.js:2:29677)
It would really be a great improvement if there were more explanatory error messages. Thank you for reporting this.
Can you check that you can see the message "Timed out, or max file size exceeded" when you hover over the Failed status?
You are correct the hover text is "Time out, or max file size exceeded". I never guessed to hoved over the "Failed" text. So by using your previous suggestion we can at least change this text. Would be nice to differentiate between time out and max file size.