C
Chris Hayes
Greetings,
I have an ASP.NET page that accepts input from an HtmlInputFile object.
I have set the maximum size for HttpRequests to 2MB in the web.config file.
And now I am trying to CATCH the "Maximum request length exceeded"
HttpException when a user tries to send a file that is greater than 2MB so
that I may tell the user, gracefully, that their file is too big.
Now, my question is where in the world do I add a Handler for HttpException,
apparrently I'm not smart enough to know where this goes or to find any kind
of useful article on the subject (all the ones I have found, don't address
what I am trying to do, and worse yet don't give any real clear examples
just vague descriptions).
Thanks,
Chris
I have an ASP.NET page that accepts input from an HtmlInputFile object.
I have set the maximum size for HttpRequests to 2MB in the web.config file.
And now I am trying to CATCH the "Maximum request length exceeded"
HttpException when a user tries to send a file that is greater than 2MB so
that I may tell the user, gracefully, that their file is too big.
Now, my question is where in the world do I add a Handler for HttpException,
apparrently I'm not smart enough to know where this goes or to find any kind
of useful article on the subject (all the ones I have found, don't address
what I am trying to do, and worse yet don't give any real clear examples
just vague descriptions).
Thanks,
Chris