By default, the size limit for ASP.NET uploads is set at 4MB. Although this is large enough for most sites, if you’re dealing in particularly hefty uploads, there’s a little-known technique for upping the cap.
Simply open machine.config in the \Microsoft.NET\Framework\ \Config folder and locate the following setting:
<httpRuntime maxRequestLength=4096 >
Now, simply alter the maxRequestLength value to a figure of your choice. To allow uploads of up to 8MB, for example, change the value from 4096 to 8192.
Tuesday, October 2, 2007
How To Upload Files Larger Than 4 MB
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment