Uploading files-- max limit

  • Thread starter Thread starter Do
  • Start date Start date
D

Do

Hi...

I'm using the default namespace in .NET to do file upload with ASP.NET.
I have a file that's 4MB and I can't upload it. What's the default max and
what's the property
I'm looking for?

Thanks,

Do
 
You need to add or modify the following section in your web.config file:

<configuration>
<system.web>
<httpRuntime maxRequestLength="4096" />
</system.web>
</configuration>

The above value (4096 KB) is the default maximum upload file size.
 

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

Back
Top