Introduction:
In asp.net by default file upload limit
is 4mb. But we can increase the uploading size limit. This can be possible
changing setting in webconfig file.
We can restrict size of uploading file
limit in webconfig file. Suppose we want to upload file of less than or equal
to 20 mb, then we will set:
maxRequestLength="20480"
in
httpruntimetag in web config file.
Following Code we will use to incease or restrict file size in
Asp.Net applications:
<system.web>
<!-- This will handle requests up to 1024MB (1GB) -->
<httpRuntime maxRequestLength="1048576"
timeout="3600" />
</system.web>
|
In above example we can handle upto 1 gb file uploading size.
0 comments:
Post a Comment