473,396 Members | 1,933 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,396 software developers and data experts.

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 1768
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
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
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
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
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
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
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
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
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
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
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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.