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

File to big to upload.

UJ
I'm trying to limit the size of a file the user can upload. I want it so
that if the file is larger than 100MB, I tell them it needs to be smaller. I
put code in when they 'upload' the file to check the size but if the file is
larger than 100MB (which is what I check for) I get an error saying it can't
display the page.

I though I read somewhere about a limit set somewhere in IIS as to the size
of the files that are allowed to be uploaded.

I did find a KB article at support.ms that talks about catching an
application error and checking to see if it's on the page I'm interested in
and redirect to an error page. I put this code in and it never seems to be
fired.

Can anybody give any help?

TIA - Jeff.
Jul 5 '06 #1
4 1332
What is the KB you found and the code you used ?

This limit is configurable as the IIS level (in the metabase.xml file, 200
Ko by default if I remember).

AFAIK this is an error that is raised outside of your own code i.e. you
should be able to catch this in a global handler (global.asax file,
Application_Error event) but not in a page error handler.

--
Patrice

"UJ" <fr**@nowhere.coma écrit dans le message de news:
%2****************@TK2MSFTNGP03.phx.gbl...
I'm trying to limit the size of a file the user can upload. I want it so
that if the file is larger than 100MB, I tell them it needs to be smaller.
I put code in when they 'upload' the file to check the size but if the
file is larger than 100MB (which is what I check for) I get an error
saying it can't display the page.

I though I read somewhere about a limit set somewhere in IIS as to the
size of the files that are allowed to be uploaded.

I did find a KB article at support.ms that talks about catching an
application error and checking to see if it's on the page I'm interested
in and redirect to an error page. I put this code in and it never seems to
be fired.

Can anybody give any help?

TIA - Jeff.


Jul 5 '06 #2
UJ
Here's the KB article I found:
http://support.microsoft.com/kb/910436/en-us

"Patrice" <sc****@chez.comwrote in message
news:ej*************@TK2MSFTNGP04.phx.gbl...
What is the KB you found and the code you used ?

This limit is configurable as the IIS level (in the metabase.xml file, 200
Ko by default if I remember).

AFAIK this is an error that is raised outside of your own code i.e. you
should be able to catch this in a global handler (global.asax file,
Application_Error event) but not in a page error handler.

--
Patrice

"UJ" <fr**@nowhere.coma écrit dans le message de news:
%2****************@TK2MSFTNGP03.phx.gbl...
>I'm trying to limit the size of a file the user can upload. I want it so
that if the file is larger than 100MB, I tell them it needs to be
smaller. I put code in when they 'upload' the file to check the size but
if the file is larger than 100MB (which is what I check for) I get an
error saying it can't display the page.

I though I read somewhere about a limit set somewhere in IIS as to the
size of the files that are allowed to be uploaded.

I did find a KB article at support.ms that talks about catching an
application error and checking to see if it's on the page I'm interested
in and redirect to an error page. I put this code in and it never seems
to be fired.

Can anybody give any help?

TIA - Jeff.



Jul 5 '06 #3
Request size errors are handled at IIS level. So if somebody is trying to
upload a huge file, your web application will never get a chance to handle
it. It will be rejected at the front door, IIS.
"UJ" <fr**@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I'm trying to limit the size of a file the user can upload. I want it so
that if the file is larger than 100MB, I tell them it needs to be smaller.
I put code in when they 'upload' the file to check the size but if the
file is larger than 100MB (which is what I check for) I get an error
saying it can't display the page.

I though I read somewhere about a limit set somewhere in IIS as to the
size of the files that are allowed to be uploaded.

I did find a KB article at support.ms that talks about catching an
application error and checking to see if it's on the page I'm interested
in and redirect to an error page. I put this code in and it never seems to
be fired.

Can anybody give any help?

TIA - Jeff.


Jul 5 '06 #4
UJ
How can I change the size that IIS will allow?

"Winista" <wi*****@gmail.comwrote in message
news:OE**************@TK2MSFTNGP05.phx.gbl...
Request size errors are handled at IIS level. So if somebody is trying to
upload a huge file, your web application will never get a chance to handle
it. It will be rejected at the front door, IIS.
"UJ" <fr**@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I'm trying to limit the size of a file the user can upload. I want it so
that if the file is larger than 100MB, I tell them it needs to be
smaller. I put code in when they 'upload' the file to check the size but
if the file is larger than 100MB (which is what I check for) I get an
error saying it can't display the page.

I though I read somewhere about a limit set somewhere in IIS as to the
size of the files that are allowed to be uploaded.

I did find a KB article at support.ms that talks about catching an
application error and checking to see if it's on the page I'm interested
in and redirect to an error page. I put this code in and it never seems
to be fired.

Can anybody give any help?

TIA - Jeff.



Jul 5 '06 #5

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

Similar topics

4
by: Tihon | last post by:
Hello! I again need your help, just can't understand whats going on. Got this upload pictures form and it's having problem handling large files (~1.5 - 2 MB). Everything works fine if i just...
15
by: Simon | last post by:
I would like to create a very basic file upload add image form to add to my web site and to keep them in a "tmp" directory within my web hosting file manager once uploaded. I understand the basic...
2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
2
by: mark | last post by:
How do I detect that a particular form element is a file upload or if the file upload has worked? In the Python cgi module documentation I found suggested code... form = cgi.FieldStorage()...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
1
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one...
6
Jacotheron
by: Jacotheron | last post by:
I need a PHP script that can upload music files (mp3). The script is for a home project I have started a while ago. I have a MySQL database of all the music that I have. Other computers on the...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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: 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:
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...

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.