简体   繁体   中英

Why maxRequestLength set is invalid in MVC 3?

In the web.config, I've set maxRequestLength to 102400. When I upload a 65M file, it redirects me to a 404 error page, but it is normal in asp.net. This is the current setting:

 <httpRuntime requestValidationMode="2.0" maxRequestLength="102400"/>

If you try to upload a small file, its work? I think this kind of error isn't related with maxRequestLength. Verify your Upload Action, or write here for us.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM