size restriction on input type=file

Z

z f

Hi,

i work with a vb.net asp.net web application.
i have a web-form with an input type=file runat=server and it's working OK
until i tried to upload a file of 4MB.
it works with 1.78 MB i didnot check for sizes between 1.78 to 4 MB
with the 4MB file i get a page failure and it not enter into debug mode
page_load event.
the framework just break with a
The page cannot be displayed
..
..

Cannot find server or DNS Error
Internet Explorer
error.

does someonoe have information rearding this??

TIA, z.
 
S

Steve C. Orr [MVP, MCSD]

You can 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. This is
causing your problem.
 
Z

z f

why does it not throw a regular exception, and breaks as it does not enter
to the framework at all?

thanks!!!
 

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,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top