473,491 Members | 2,221 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error while uploading big files

Hi
I created one mail form. And Im attaching one file. In web.config I set the
maxlength to the file is 4mb. Now im trying to upload 5mb. Now "The page Not
found" error occurs.(I cant able to debug also Immediately after the
attachment and submit button then the above error occors.) Actually I want
to display the message to the user (The maximum size of the file should be
4MB. like this) and to display the same page to select further attachment.
How can I do this?]
Jul 21 '05 #1
3 1770
When you try to upload a 5 MB file, IIS will not handle the request since
the maximum post size is set to 4 MB. As a result, you get a "Page Not Found
Error".

Couple of things you can do:
1. Increase the Max Size to more than 5 MB, but before the action, look the
posted file size on the server and return the error message to the user if
the size is > 4MB.
2. You can trap the specific IIS error and redirect the user to a custom
error page.
3. You can install a client size activeX which reads the file size from the
client side and disables the post if size > 4 MB.

Good luck
Shuvro

"Sundar" <Su****@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hi
I created one mail form. And Im attaching one file. In web.config I set the maxlength to the file is 4mb. Now im trying to upload 5mb. Now "The page Not found" error occurs.(I cant able to debug also Immediately after the
attachment and submit button then the above error occors.) Actually I want to display the message to the user (The maximum size of the file should be
4MB. like this) and to display the same page to select further attachment.
How can I do this?]

Jul 21 '05 #2
When you try to upload a 5 MB file, IIS will not handle the request since
the maximum post size is set to 4 MB. As a result, you get a "Page Not Found
Error".

Couple of things you can do:
1. Increase the Max Size to more than 5 MB, but before the action, look the
posted file size on the server and return the error message to the user if
the size is > 4MB.
2. You can trap the specific IIS error and redirect the user to a custom
error page.
3. You can install a client size activeX which reads the file size from the
client side and disables the post if size > 4 MB.

Good luck
Shuvro

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Sundar" <Su****@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hi
I created one mail form. And Im attaching one file. In web.config I set the maxlength to the file is 4mb. Now im trying to upload 5mb. Now "The page Not found" error occurs.(I cant able to debug also Immediately after the
attachment and submit button then the above error occors.) Actually I want to display the message to the user (The maximum size of the file should be
4MB. like this) and to display the same page to select further attachment.
How can I do this?]

Jul 21 '05 #3
Thanks Shurvo Mazumder
But I dont want to allow upload more than 4mb to the user. And I want to
redirect to the same page ( or otherpage in the same solution but the user
should not logout) I m passing Session ID to all the pages and verifying
the same in the page for user identification.

"Shuvro Mazumder [MSFT]" wrote:
When you try to upload a 5 MB file, IIS will not handle the request since
the maximum post size is set to 4 MB. As a result, you get a "Page Not Found
Error".

Couple of things you can do:
1. Increase the Max Size to more than 5 MB, but before the action, look the
posted file size on the server and return the error message to the user if
the size is > 4MB.
2. You can trap the specific IIS error and redirect the user to a custom
error page.
3. You can install a client size activeX which reads the file size from the
client side and disables the post if size > 4 MB.

Good luck
Shuvro

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Sundar" <Su****@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hi
I created one mail form. And Im attaching one file. In web.config I set

the
maxlength to the file is 4mb. Now im trying to upload 5mb. Now "The page

Not
found" error occurs.(I cant able to debug also Immediately after the
attachment and submit button then the above error occors.) Actually I

want
to display the message to the user (The maximum size of the file should be
4MB. like this) and to display the same page to select further attachment.
How can I do this?]


Jul 21 '05 #4

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

Similar topics

0
3098
by: Marc | last post by:
Hello, I have a page where i can upload binary file (using the HTML input type=file approach). This works fine for relatively small files (<6MB)) but when files get bigger (13MB) there is a...
4
2760
by: dickiedyce | last post by:
Hi there. I've spent the weekend getting ever more frustrated, trying to get an upload file function working on a website. The site is hosted by a company called oneandone. They're using PHP...
1
7311
by: Nikhil | last post by:
I have a VBscript that I use to upload files onto the server. The script works fine on IIS 5.0 but on IIS 6.0 on Windows 2003 I get an error when uploading certain files. I believe its because the...
7
4520
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
5
1480
by: hb | last post by:
Hi, In my ASP.Net application 'MyWebApp' , the mode="StateServer" in <sessionState> of Web.config file, and the ASP.NET State Service is set to start automatically on the server. But every...
2
4416
by: GD | last post by:
Hi, An intranet application, with a SMTP mail function that lets users to attach files with emails by selecting files in their local computers (through a file browser component), works perfect on...
1
2063
by: wenqiang7 | last post by:
I am encountering a very strang problem with file uploading in my ASP.Net page. When we try to upload certain file, we'll get an error msg of "Cannot find server or DNS Error". We are running...
0
1490
by: PerumalSamy | last post by:
Hi, I am getting following error while uploading my project in web. Description: An error occurred during the processing of a configuration file required to service this request. Please review...
3
5154
by: muziburrehaman | last post by:
i am looking for code in php to upload the 1 gb files. any one can please help me by sending the code....
4
4086
rahulephp
by: rahulephp | last post by:
i think i am missing something in the below script: It shows error an do not upload files to destination: Let me know how to solve this: <?php if (isset($_POST)) { $uploadArray=...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.