Uploading files-- max limit

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
 
S

Steve C. Orr [MVP, MCSD]

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top