Hi Friends,
Today i will talk about the exception we usually get while uploading a large size file in file uploader in asp.net. The exception we get is shown in below image
To get rid of this exception you need to configure the web.config file and do the following settings in <system.web>
<httpRuntime targetFramework="4.5.2" maxRequestLength="1048576" />
Here maxRequestLength is in KB(KiloByte).
By Default it will upload 4096KB(4MB) file.
Thanks
Happy Coding!!
0 Comment(s)