Home > Article > Backend Development > Asp.NET method to control file upload size (super simple)_Practical tips
The following editor will share with you an articleAsp.NETControl the size of file upload (super simple), which has a good reference value , I hope it will be helpful for everyone to learn Asp.NET. Friends who are interested in Asp.NET should follow the editor to have a look
Add the following code under the system.web node in web.config:
maxRequestLength="8192" in line 2, the maximum limit here is 8MB, you can set it yourself. executionTimeout="800", the executionTimeout default (ie default) is 90 seconds
<system.web> <httpRuntime maxRequestLength="8192" executionTimeout="800"/> </system.web>
The above Asp.NET control file upload The size method (super simple) is all the content shared by the editor. I hope it can give you a reference, and I hope you will support the PHP Chinese website.
Related recommendations:
Solutions to common problems when deploying asp.net to IIS_Practical tips
#Example of implementing Forms authentication authentication process in asp.net mvc
The above is the detailed content of Asp.NET method to control file upload size (super simple)_Practical tips. For more information, please follow other related articles on the PHP Chinese website!