(go) Change the size limit of the upload file in Web. config

Source: Internet
Author: User

. NET uploads more than 200K images, will jump to 404, but the URL is not wrong, really J8 pit ah.

This article was reproduced from: http://www.cnblogs.com/zwffff/archive/2009/04/29/1446229.html

In the default ASP. NET site, Web. config has a certain limit on the size of a single upload file, which defaults to 4096K.

We can change the size of a single upload file by changing the Web. config file.

The code is as follows:

<maxrequestlength= "49600"  apprequestqueuelimit= "  executiontimeout= "/> "

Where maxRequestLength is the size of a single uploaded file, this is 40M

As for changing the configuration file can not be more than how big, we test it yourself. I have tried 250M is possible.

(go) Change the size limit of the upload file in Web. config

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.