purplesoup
asked on
How can I avoid ugly 404.13 error messages when a user tries to upload a file to the server that exceeds the maximum size?
If a user tries to upload a file that exceeds the maximum allowed, they are greeted with an ugly server error
HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length
Is it possible to give them a friendlier message than this?
I know IIS has the facility to assign custom error pages, but this is for primary error codes - for example a 404 error, if you try to enter a custom page for a 404.13 error it says '404.13 is an invalid status code. Status codes must be numbers in the form of 400 or 500. Status codes must be between 100 and 999"
HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length
Is it possible to give them a friendlier message than this?
I know IIS has the facility to assign custom error pages, but this is for primary error codes - for example a 404 error, if you try to enter a custom page for a 404.13 error it says '404.13 is an invalid status code. Status codes must be numbers in the form of 400 or 500. Status codes must be between 100 and 999"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can also validate the size before uploading if you use http://www.brettle.com/neatupload