Asp.NET method to control file upload size (super simple)_Practical tips

韦小宝
Release: 2017-12-15 14:46:27
Original
1927 people have browsed it

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>
Copy after login


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

How to implement reading in ASP.NET Core class library project Detailed explanation of configuration files

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!