ASP.NET File Upload
-
What is the max file size limit that can be uploaded by File Upload control? Can u give code to set the maximum file size in File Upload control? Thanks and Regards,
sdaniel_cst
-
What is the max file size limit that can be uploaded by File Upload control? Can u give code to set the maximum file size in File Upload control? Thanks and Regards,
sdaniel_cst
The maximum file size is controlled via config file. The maximum size for .NET1/1.1 is 1GB. For .NET2 it is 2GB. By default, the size is 4096K (4MB). To change the size, you specify the following:
<httpRuntime maxRequestLength="value in K" executionTimeout="3600" />
It is not a good idea to let this value get too big because ASP.NET loads the item into memory as it is uploading, so large values quite often result in Out of Memory exceptions.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before. -
The maximum file size is controlled via config file. The maximum size for .NET1/1.1 is 1GB. For .NET2 it is 2GB. By default, the size is 4096K (4MB). To change the size, you specify the following:
<httpRuntime maxRequestLength="value in K" executionTimeout="3600" />
It is not a good idea to let this value get too big because ASP.NET loads the item into memory as it is uploading, so large values quite often result in Out of Memory exceptions.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.Thanks very much for your reply...
sdaniel_cst