473,382 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

size restriction on input type=file

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.

Nov 19 '05 #1
2 4796
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"z f" <zi**@info-scope.co.il> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
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.

Nov 19 '05 #2
z f
why does it not throw a regular exception, and breaks as it does not enter
to the framework at all?

thanks!!!
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"z f" <zi**@info-scope.co.il> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
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.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tim | last post by:
I meet problem on uploading a file with a large file size. Below is my code, how can I modify in order to be able to upload a large file successfully ? Thank for your help. upload.html: <html>...
1
by: Pavan Jha | last post by:
Hi, I am using File Input for one of my pages. I have multiple inputs on my page as <INPUT Type=FILE Name=File1> <INPUT Type=FILE Name=File2> and so on... I have a function for validating...
2
by: Quick Function | last post by:
For the <input type="file">, can I select directory? Multiple directories? Thanks, qq
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
3
by: oopaevah | last post by:
I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens. All I do is call click()...
5
by: hrpreet | last post by:
Hi All, I need the file chooser in the jsp, just for brosing and saving the file path in the database, so i have used the following code.I dont need to read the file content. I have to make it...
0
by: ThunderMusic | last post by:
Hi, I have a page where I have an input type=file control and many other controls... the thing is, when I cause a postback by any control on the page, if a file is selected in the input...
12
by: Larry Bud | last post by:
I rarely crosspost, but this affects both ASP and Javascript REALLY odd bug that I ran across in ASP 3.0. I have an input type of file, user clicks browse, then places his cursor in the...
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.