473,883 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP upload fails when files dimensions exceed 3MB. Why ?

Hello.

I'm experiecing a problem with file uploads from ASP pages.

On a Windows 2000 - IIS 5 server we're running an ASP Classic
application that features an upload form for files of great dimensions
(100+MB). Problem is, when we try to upload a file exceeding 3MB we
retive almost immediatly a message such as 'The page cannot be
displayed'.

We do not even reach the page that contains the code for file
managing; when we click on the submit button in the form with enctype
multipart form data the application ends and the error is visualized.

For files under 3MB there are no problems at all.

The FAQ of our upload third party component (ABCUpload by Websupergoo)
state that we could either have problems with our proxy or we could be
stopped by a wrong URLScan setting: we do not have any proxy nor
URLScan is installed on our server.

I may add that all the configuration of the script timeouts on IIS are
correctly set.

Is there anyone who can suggest us a solution ?

Thanks in advance for any help...

Newcomsas

Feb 20 '07 #1
8 6071

"Newcomsas" <ne*******@hotm ail.comwrote in message
news:11******** *************@h 3g2000cwc.googl egroups.com...
Hello.

I'm experiecing a problem with file uploads from ASP pages.

On a Windows 2000 - IIS 5 server we're running an ASP Classic
application that features an upload form for files of great dimensions
(100+MB). Problem is, when we try to upload a file exceeding 3MB we
retive almost immediatly a message such as 'The page cannot be
displayed'.
100+MB seems a bit exessive for a POST techinque.
>
We do not even reach the page that contains the code for file
managing; when we click on the submit button in the form with enctype
multipart form data the application ends and the error is visualized.

For files under 3MB there are no problems at all.
So you tested with a 4MB file and that failed right?

The FAQ of our upload third party component (ABCUpload by Websupergoo)
state that we could either have problems with our proxy or we could be
stopped by a wrong URLScan setting: we do not have any proxy nor
URLScan is installed on our server.
No mention in the FAQ of the AspMaxRequestEn tityAllowed metabase setting? On
IIS5 this as a 1GB default but if it has been set to a much lower limit then
you would immediately get a 403 Forbidden when trying post a larger entity.

I may add that all the configuration of the script timeouts on IIS are
correctly set.
Since you getting a quick response it would seem the server is reading the
Content-Length of the POST and responding with an error. So timeouts are
unlikely to be the problem.
>
Is there anyone who can suggest us a solution ?

Thanks in advance for any help...

Newcomsas

Feb 20 '07 #2
On 20 Feb, 17:19, "Anthony Jones" <A...@yadayaday ada.comwrote:
>
So you tested with a 4MB file and that failed right?
Well, actually I tried with a 6MB file, not a big difference anyway...
No mention in the FAQ of the AspMaxRequestEn tityAllowed metabase setting? On
IIS5 this as a 1GB default but if it has been set to a much lower limit then
you would immediately get a 403 Forbidden when trying post a larger entity.
I downloaded a metabase editor, but this DWORD key was not present
(there were keys like Path, AccessFlags etc.).
Shall I suppose that the IIS default value is thus 1GB ?

Thanks,
Newcomsas
Feb 20 '07 #3
Newcomsas wrote:
On a Windows 2000 - IIS 5 server we're running an ASP Classic
application that features an upload form for files of great
dimensions (100+MB). Problem is, when we try to upload a file
exceeding 3MB we retive almost immediatly a message such as
'The page cannot be displayed'.

We do not even reach the page that contains the code for file
managing; when we click on the submit button in the form with
enctype multipart form data the application ends and the error
is visualized.

For files under 3MB there are no problems at all.

The FAQ of our upload third party component (ABCUpload by
Websupergoo) state that we could either have problems with
our proxy or we could be stopped by a wrong URLScan setting:
we do not have any proxy nor URLScan is installed on our server.

I may add that all the configuration of the script timeouts on
IIS are correctly set.
It does not appear that IIS 5 is the problem -- I just uploaded an 80MB file
to one of our IIS 5 servers to be sure -- although you may want to examine
your metabase value for AspSessionMax. I am not sure whether your component
is affected by the metabase value, however.

We recently set out to free ourselves from dependence on upload components,
and settled on an ASP.NET 2.0 solution. We even designed it for integration
with classic ASP applications -- and have found it to be a very flexible
approach.

[off-topic]
My only real quibble with the ASP.NET approach concerns error handling.
Suppose you want to limit uploads to 64MB. Then you would put this in your
web.config, right?

<httpRuntime maxRequestLengt h="65536" ... />

That depends on whether you want or need access to the rest of the form
submission for such things as error messaging. If the upload exceeds the
maxRequestLengt h, the error falls into the Application_Err or scope, not the
Page_Error. This means two things:

1. You can't use try...catch and gracefully reject based on filesize
2. When you DO handle the error, you lose access to all of the
useful parts of the HttpRequest, such as the Form items.

One alternative is to really crank up maxRequestLengt h, but then you have to
allow very large uploads to complete simply for the purpose of rejecting
them.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Feb 20 '07 #4
what error message are you getting ?
"Newcomsas" <ne*******@hotm ail.comwrote in message news:11******** *************@h 3g2000cwc.googl egroups.com...
Hello.

I'm experiecing a problem with file uploads from ASP pages.
....

Feb 20 '07 #5
'The page cannot be displayed' is a message from your browser - nothing to do with your component or ASP
"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message news:12******** *****@corp.supe rnews.com...
what error message are you getting ?
"Newcomsas" <ne*******@hotm ail.comwrote in message news:11******** *************@h 3g2000cwc.googl egroups.com...
>Hello.

I'm experiecing a problem with file uploads from ASP pages.
....


Feb 20 '07 #6

"Newcomsas" <ne*******@hotm ail.comwrote in message
news:11******** **************@ t69g2000cwt.goo glegroups.com.. .
On 20 Feb, 17:19, "Anthony Jones" <A...@yadayaday ada.comwrote:

So you tested with a 4MB file and that failed right?

Well, actually I tried with a 6MB file, not a big difference anyway...
No mention in the FAQ of the AspMaxRequestEn tityAllowed metabase
setting? On
IIS5 this as a 1GB default but if it has been set to a much lower limit
then
you would immediately get a 403 Forbidden when trying post a larger
entity.
>
I downloaded a metabase editor, but this DWORD key was not present
(there were keys like Path, AccessFlags etc.).
Shall I suppose that the IIS default value is thus 1GB ?

Thanks,
Newcomsas

You'll find an entry for the default value in Schema/Properties/Defaults
(it's ID is 7053 BTW). However it would be bad form for someone to have
tweaked that value there.

You have checked for this property along the whole path to where your ASP
page is from LM/W3SVC ?

Feb 20 '07 #7
On 20 Feb, 23:52, "Anthony Jones" <A...@yadayaday ada.comwrote:
You'll find an entry for the default value in Schema/Properties/Defaults
(it's ID is 7053 BTW). However it would be bad form for someone to have
tweaked that value there.
I've found the entry and its value is the default 1GB.
You have checked for this property along the whole path to where your ASP
page is from LM/W3SVC ?- Nascondi testo tra virgolette -
I've also looked for the key under W3SVC-->correct-website-folder but
I did not find it; so I assume the IIS default value is considered.

Newcomsas
Feb 21 '07 #8
I think there is something really weired on my server: I restarted IIS
and the error message changed to 'Page not found - error 404'. It is
of no use placing a response.end at the top of the page that manages
the file: the error compares anyway; this managing page is not
evidently reached; the application stops on the html page that holds
the form multipart.

As usual when I try to upload small files (less than 3MB) everything
works fine.

Newcomsas

Feb 21 '07 #9

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

Similar topics

15
12040
by: lawrence | last post by:
I've been using the following function (yes, it is inelegant, what can I say, I wrote it a long time ago) to upload images. Haven't had a problem with it for at least a year, and I don't recall changing it anytime recently. Nevertheless, the script is suddenly dying on this line: if (copy($uploadedFile, $pathToImageFolder)){ This is the error I get:
3
11778
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
6
4854
by: Thomas Due | last post by:
Hi, I am writing an ASP.NET project where I allow users to upload files to the server. I have changed to web.config to allow a total file size of 100MB. My problem is that if the total file size exceed this amount the page simply stops works, and I get a "Server unreachable" error. Is there any way to handle this, so I am able to present the user with a nice error message telling him that the maximum file size has been exceeded.
0
4758
by: SEMIH DEMIR | last post by:
Sitelerden birinde verilen yabancı kaynakli bir scriptti duzenledim yanlız birseyin içinden bir turlu cıkamadım işin aslı ilk defa persistin upload componentini kullanacam yanlız suanki haliyle verdiği hata şu.Bilen arkadaşlar lütfen yardım edin Persits.Upload.1 error '800a0020' The system cannot find the path specified. /classifieds/upload.asp, line 250
6
3045
by: Vic Spainhower | last post by:
Hello, I am trying to do a FTP file upload which works fine on my localhost but on my ISP server it fails. I can't seem to find where I can go to find the specific cause of the failure. In both cases the file is being transmitted to the same FTP server and using the same PHP script so it shouldn't be a file size or login credentials problem. Could someone please help me out and give me some ideas what is wrong. I would really...
7
3195
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" name="file_1" size=46 /><input type=submit /> so, after adding a few files, the input fields look like this:
6
3348
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
I have a strange problem when uploading a PDF document to a web-server. When I try this to a web-server running Apache 2 on a FC 4, it fails. Firefox says that the document contain no data. If I upload it to a different web-server running RH 7.3 (an internal test-webserver), it works OK. The PDF document is created by OpenOffice 2.0 from a MS Word document. I have also had it converted to PDF in MS Word that could create PDF documents....
7
2372
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a camera or other, it uploads fine. However, If I want to rotate the image, or resize it with photoshop or simmilar, making sure to save it again as a jpg, the PHP upload won't upload the image.
7
2620
by: MDB | last post by:
Anyone have any pointers / links / examples on how to upload files through FTP? I am currently using the built in file upload control however it seems to take a very long time to upload files and would like to explore other ways of doing it. Any pointers or suggestions would greatly be appreciated.
0
9789
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10734
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10838
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10408
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9569
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7967
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7119
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5794
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.