473,624 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Uploads

I'm have Windows 2000 Server and my website allows uploads of files (using <input type="file">) However I have some
problems when a user trys to upload a large (>8MB) file. When the user submits the form within about 5 seconds an error
message is returned (in FireFox it says "the document contains no data" in IE 6 it just redirects to a page that says
the "the page cannot be found". When I look in my webserver log it shows a 400 error. Of course this problem doesn't
happen with all users either. Is there any way to actually troubleshoot these problems? My web app is developed with
..NET but it doesn't appear that that is in anyway the problem since the error is returned so quickly. The file is not
even getting uploaded in that amount of time. I really need to get this fixed any help is appreciated (I don't want to
use a client side control to do the uploads since I have to support very unsophisticated users and several different
browsers on Mac, Windows, and Linux).
--Buddy
Nov 19 '05 #1
2 1393
I'm not totally sure but the problem may be related to the upload file size
restriction imposed by the ASP.NET runtime. You can adjust the maximum size
by including the httpRuntime element and specifying its maxRequestLengt h
property in the application's web.config file. Refer to the following link
for more information.

http://msdn.microsoft.com/library/de...imesection.asp

HTH
----------------
Dave Fancher
http://davefancher.blogspot.com

"Buddy Ackerman" <bu**********@b uddyackerman.co m> wrote in message
news:en******** ******@TK2MSFTN GP10.phx.gbl...
I'm have Windows 2000 Server and my website allows uploads of files (using
<input type="file">) However I have some problems when a user trys to
upload a large (>8MB) file. When the user submits the form within about 5
seconds an error message is returned (in FireFox it says "the document
contains no data" in IE 6 it just redirects to a page that says the "the
page cannot be found". When I look in my webserver log it shows a 400
error. Of course this problem doesn't happen with all users either. Is
there any way to actually troubleshoot these problems? My web app is
developed with .NET but it doesn't appear that that is in anyway the
problem since the error is returned so quickly. The file is not even
getting uploaded in that amount of time. I really need to get this fixed
any help is appreciated (I don't want to use a client side control to do
the uploads since I have to support very unsophisticated users and several
different browsers on Mac, Windows, and Linux).
--Buddy

Nov 19 '05 #2
I forgot to mention that I've set the size to 15MB, so it's not the maxRequestlengt h that's the problem. However that
raises a question. How does ASP.NET know the fils size? Does the client send the file size in the header? If so maybe
the client browser is sending the wrong file size or maybe it's not send the file size and that's causing it to fail.
The problem is that I wouldn't expect it to throw a 400 error back to the user. I've seen what happens when you try to
upload a file that's larger than the maxRequestlengt h and it's a nasty ASP.NET runtime error screen.

Also, as I said in the original post it's not a problem for everyone. I don't have the problem when I upload files and
the user that had the problem was using Windows XP and tried it with both IE and FireFox.

--Buddy

Dave Fancher wrote:
I'm not totally sure but the problem may be related to the upload file size
restriction imposed by the ASP.NET runtime. You can adjust the maximum size
by including the httpRuntime element and specifying its maxRequestLengt h
property in the application's web.config file. Refer to the following link
for more information.

http://msdn.microsoft.com/library/de...imesection.asp

HTH
----------------
Dave Fancher
http://davefancher.blogspot.com

"Buddy Ackerman" <bu**********@b uddyackerman.co m> wrote in message
news:en******** ******@TK2MSFTN GP10.phx.gbl...
I'm have Windows 2000 Server and my website allows uploads of files (using
<input type="file">) However I have some problems when a user trys to
upload a large (>8MB) file. When the user submits the form within about 5
seconds an error message is returned (in FireFox it says "the document
contains no data" in IE 6 it just redirects to a page that says the "the
page cannot be found". When I look in my webserver log it shows a 400
error. Of course this problem doesn't happen with all users either. Is
there any way to actually troubleshoot these problems? My web app is
developed with .NET but it doesn't appear that that is in anyway the
problem since the error is returned so quickly. The file is not even
getting uploaded in that amount of time. I really need to get this fixed
any help is appreciated (I don't want to use a client side control to do
the uploads since I have to support very unsophisticated users and several
different browsers on Mac, Windows, and Linux).
--Buddy


Nov 19 '05 #3

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

Similar topics

3
3557
by: kafooey | last post by:
Hi all, I've been digging around on the newsgroups and the web for a possible answer for this problem, but have so far come up with nothing so thought I would ask here... I have the following code doing a file upload... $upload_result =
1
1669
by: Doug Helm | last post by:
I should have been more clear in my subject line. I was also the poster in the "File Uploads" topic. I'm not having any luck getting file uploads to work (multi-part HTML form) on a Windows server. I'm using a very close approximation of public domain code that I found. I've tried a couple of different implementations (very similar), but I am essentially using the following test code: ...
13
4296
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 that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
5
2088
by: Kikoz | last post by:
Hi all. I assume that if the user uploads a file from aspx page IIS will put all future requests to the same page from other users in a line and all of them will be waiting until this upload finishes. Meaning appl uses just one thread for all requests. Right? Is it safe or possible to get uploading request and execute it in a separate thread safely saving the file in correct location on the server? Or anything else? Articles, samples?...
4
5162
by: yehaimanish | last post by:
I am developing the project management system. Each Project: 1. Title, description ... , stored in mysql database 2. Upto ten files (initial description), (name in db, file in file system) 3. Message board, stored in mysql database (1 file per message, message in db, file in file system) I need a link (Download Project) which will download all the project
4
3492
by: mcrose | last post by:
I've written theh standard applicaiton for our client to allow indexed (customer name, subject etc) file uploads via secure http using the <input type='file'http element. This works great, and has the added benefit over FTP that I can begin processing the file data stream while the download is in progress. Yeah. The client is happy, but now they want to upload multi GB files. The http request are limitted to something like 2 or 4 GB. I...
3
19860
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be found at www.srmiles.com/freestuff/ajax_file_uploader/ . you can do multiple file uploads. each upload will have it's own "form"-tag, so that each file is uploaded for its own. could be a good solution if there are "big" uploads.
6
2201
by: Emmanuel Petit | last post by:
First of all I am rather new into PHP. I use php 5 and I am putting together a web site for a local association I belong too. Most of the site is okay, except for this problem : I need to be able for the member of the site to upload files (gif, jpg or pdf). After reading a lot about the danger of file uploading, I decided to create a folder at the root of the web server. The upload of the files goes on without any problem, but when i...
6
2704
by: Milan Krejci | last post by:
while(list($key,$value) = each($_FILES)) { if(!empty($value)){ $filename = $value; $add = "upimg/$filename"; echo $_FILES; $error=copy($_FILES, $add); if (!$error) $progressUploadingPhotos=false; $error=chmod($add,0777); if (!$error) $progressUploadingPhotos=false;
10
1481
by: =?ISO-8859-1?B?UOlw6g==?= | last post by:
Hello. Im new to php and i had experience in ASP. IM trying to get a pdf file from a remote folder and what happens is that opens a new page. Here is the code: <a href="./uploads/files/<?php echo $pdf ?>">Get File!</a>
0
8249
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8348
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
8493
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...
1
6112
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
4084
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
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2613
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 we have to send another system
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.