Uploading large file in asp.net
So this application We are working on needs to upload large files from browser. We use applet to upload the file. The old application which was in classic asp didn't have any such problem. After hours of frustrations we figure out that by default the .net framework does not let you upload files more than 4MB. The setting is in machine.config as follow
<httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true"/>
All you have do is to overwrite this setting in your web.config. You can copy the same <httpRunTime> Element in your web.config and overwrite the maxRequestLength attribute to whatever maximum limit you want to set.
I think this is a nice feature in asp.net which can atleast minimize upto some extend the "service denial attacks"

0 Comments:
Post a Comment
<< Home