0
Answer

How to handle max size upload error for the control "HtmlInputFile"

Wen Dell

Wen Dell

17y
3.7k
1
My  web application  uploads mutiple files. I have set the maximum limit in web.config through <httpRuntime maxRequestLength="16384" i.1 16MB

But when user tries to upload a file above 16 MB then it gives "Cannot find server or DNS Error"

Through ASP.NET error handling mechanism how to handle this error to display custom message.

Thanks in advance.