Upload files limit to 3MB

S

S. Milton

We are using the following .net feature to upload files from a browser to
our website. Unfortunately it seems to be limited to 3MB and anything
larger creates an error. Any ideas as to how we can get round this
limitation?
Protected WithEvents File1 As System.Web.UI.HtmlControls.HtmlInputFile
 
D

Danny

S. Milton said:
We are using the following .net feature to upload files from a browser to
our website. Unfortunately it seems to be limited to 3MB and anything
larger creates an error. Any ideas as to how we can get round this
limitation?
Protected WithEvents File1 As System.Web.UI.HtmlControls.HtmlInputFile
By default, it is limited to 4MB.
To change this limitation, change maxRequestLength value in the
machine.config file (under <system.web> section).
For example (change limitation into 8MB):

<httpRuntime executionTimeout="90" maxRequestLength="8192"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>


HTH,

Danny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top