ASP.NET has native object that stores uploaded files. Native ASP.NET object has one seriouse disadvantage: It uses memory equal to files size. If you uploads large files you can get "out of memory" error.
May be you will be interested in our another product PowUpload ASP.NEt control.
PowUpload handles and stores the contents of the POST request to a file on the server hard disk rather than loading it into memory as the built-in ASP.NET upload support does. PowUpload provides rich server-side progress indicator that lets users to monitor the progress of their uploads and some ather advanced features.
You can see PowUpload code example here.
httpRuntime
- element cConfigures ASP.NET HTTP runtime settings.
maxRequestLength
- Attribute indicates the maximum file upload size supported by ASP.NET.
This limit can be used to prevent denial of service attacks caused by users posting large files to the server.
The size specified is in kilobytes. The default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0 and 1.1 and
"2097151" (2 GB) for .NET Framework 2.0.
executionTimeout
- Attribute indicates the maximum number of seconds that a request is allowed to
execute before being automatically shut down by ASP.NET.
The executionTimeout value should always be longer than the amount of time that the upload process can take.