473,762 Members | 7,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why would a large not upload, when a small does, when it is still within the POST limit?

I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.

I've set the POST limit in php.ini to 8 megs.

What reasons, other than the POST limit, would a large upload fail?

Jan 9 '06 #1
16 4985
On Sun, 08 Jan 2006 03:08:20 -0800, lawrence k wrote:
I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.

I've set the POST limit in php.ini to 8 megs.

What reasons, other than the POST limit, would a large upload fail?

5 megs of binary data will be sent as a lot more than that of (base 64
encoded?) ascii data.

Try doubling your limit and see if it magically works.

Steve

Jan 9 '06 #2
lawrence k wrote:
I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.

I've set the POST limit in php.ini to 8 megs.

What reasons, other than the POST limit, would a large upload fail?

Check also your script time-out limit. Your long upload might be taking
too long?
Jan 10 '06 #3
jo*********@sbc global.net says...
lawrence k wrote:

I've set the POST limit in php.ini to 8 megs.

What reasons, other than the POST limit, would a large upload fail?


Check also your script time-out limit. Your long upload might be taking
too long?


If you're using PHP on Apache check that the httpd.conf settings aren't
lower than your PHP settings.

Geoff M
Jan 10 '06 #4
On Mon, 09 Jan 2006 23:13:23 +1300, Steve <Th*****@Aint.V alid> wrote:
On Sun, 08 Jan 2006 03:08:20 -0800, lawrence k wrote:
What reasons, other than the POST limit, would a large upload fail?


5 megs of binary data will be sent as a lot more than that of (base 64
encoded?) ascii data.

Try doubling your limit and see if it magically works.


File uploads are not base64 encoded, they are sent pretty much raw using
multipart/form-data.

http://www.w3.org/TR/html4/interact/...ml#h-17.13.4.2

A 5MB file will take 5MB plus a few bytes overhead for headers.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 20 '06 #5
On 8 Jan 2006 03:08:20 -0800, "lawrence k" <lk******@geoci ties.com> wrote:
I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.
The single most annoying phrase when describing problems, if not followed by
details. In what way did it not work?

What error did you get? You checked for errors and have error reporting turned
on, right?
I've set the POST limit in php.ini to 8 megs.

What reasons, other than the POST limit, would a large upload fail?


Various. Almost all of which produce errors, either in the form of PHP errors,
Apache errors or the field in $_FILES.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 20 '06 #6

Andy Hassall wrote:
On 8 Jan 2006 03:08:20 -0800, "lawrence k" <lk******@geoci ties.com> wrote:
I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.
The single most annoying phrase when describing problems, if not followed by
details. In what way did it not work?


Sorry, here is what is happening. If, in FireFox 1.5, I login to the
control panel, and I try to upload a small jpeg image, 234k, it uploads
without a problem. If, on the other hand, I try to upload an 8 meg PDS
file, I instantly (no attempt at upload) get this FireFox message:

The connection was reset
The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try
again in a few
moments.
* If you are unable to load any pages, check your computer's
network
connection.
* If your computer or network is protected by a firewall or
proxy, make sure
that Firefox is permitted to access the Web.

In Internet Explorer, uploading the small file is no trouble, but
uploading the big one gives me this:

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site
might be experiencing technical difficulties, or you may need to adjust
your browser settings.


Following the advice of others on this thread we (or rather, Matt
Clark, our Linux guy) have edited the php.ini file to allow 50 meg
uploads. We also looked through the config file for Apache and saw
nothing there that might have limited uploads. But the problem
persists.
What error did you get? You checked for errors and have error reporting turned
on, right?


I'm not sure, but I don't think I have access to the errors on the
server. I'm sure Matt does though, so I'll ask him to send me these
logs.

Jan 24 '06 #7

Andy Hassall wrote:
On 8 Jan 2006 03:08:20 -0800, "lawrence k" <lk******@geoci ties.com> wrote:
I've a file upload script on my site. I just now used it to upload a
small text document (10k). Everything worked fine.

Then I tried to upload a 5.3 meg Quicktime video.

Didn't work.


The single most annoying phrase when describing problems, if not followed by
details. In what way did it not work?

What error did you get? You checked for errors and have error reporting turned
on, right?


Our Linux guy, Matt Clark, checked for errors. He said there were no
errors in the PHP log.

Jan 25 '06 #8
if you're uploading to a database, are you using MEDIUMBLOB or LONGBLOB for
a data type?

"lawrence k" <lk******@geoci ties.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .

Andy Hassall wrote:
On 8 Jan 2006 03:08:20 -0800, "lawrence k" <lk******@geoci ties.com>
wrote:
>I've a file upload script on my site. I just now used it to upload a
>small text document (10k). Everything worked fine.
>
>Then I tried to upload a 5.3 meg Quicktime video.
>
>Didn't work.


The single most annoying phrase when describing problems, if not
followed by
details. In what way did it not work?


Sorry, here is what is happening. If, in FireFox 1.5, I login to the
control panel, and I try to upload a small jpeg image, 234k, it uploads
without a problem. If, on the other hand, I try to upload an 8 meg PDS
file, I instantly (no attempt at upload) get this FireFox message:

The connection was reset
The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try
again in a few
moments.
* If you are unable to load any pages, check your computer's
network
connection.
* If your computer or network is protected by a firewall or
proxy, make sure
that Firefox is permitted to access the Web.

In Internet Explorer, uploading the small file is no trouble, but
uploading the big one gives me this:

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site
might be experiencing technical difficulties, or you may need to adjust
your browser settings.


Following the advice of others on this thread we (or rather, Matt
Clark, our Linux guy) have edited the php.ini file to allow 50 meg
uploads. We also looked through the config file for Apache and saw
nothing there that might have limited uploads. But the problem
persists.
What error did you get? You checked for errors and have error reporting
turned
on, right?


I'm not sure, but I don't think I have access to the errors on the
server. I'm sure Matt does though, so I'll ask him to send me these
logs.

Jan 25 '06 #9
On 24 Jan 2006 17:13:53 -0800, "lawrence k" <lk******@geoci ties.com> wrote:
Andy Hassall wrote:
What error did you get? You checked for errors and have error reporting turned
on, right?


Our Linux guy, Matt Clark, checked for errors. He said there were no
errors in the PHP log.


That's one log down, then. What about the others?

Hint:
What reasons, other than the POST limit, would a large upload fail?


Various. Almost all of which produce errors, either in the form of PHP errors,
Apache errors or the field in $_FILES.

^^^^^^^^^^^^^

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 25 '06 #10

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

Similar topics

11
5887
by: CSN | last post by:
Is it possible to iterate over an array in plpgsql? Something like: function insert_stuff (rel_ids int) .... foreach rel_ids as id insert into table (rel_id, val) values (id, 5);
6
2236
by: Ramesh | last post by:
Hi, We are receiving an error 'The operation has timed out' when our ASP.NET application on Web Server stores large files 10MB+ on the App Server using HTTP PUT. This is a Server to Server communication. This works fine with 4-5 MB files though. Also there is a 15 mb shared bandwidth limitation. how can we throttle/control the transfer rate to see that we are within the bandwidth limits ? Any help is highly appreciated
6
3614
by: Paul | last post by:
Hi there, When adding a "File Field" HTML control to an aspx page to facilitate file uploading, the following occurs: 1. You select a file that is larger than the allowed size limit. 2. Once the user selected the too large file, the page is redirected to a "page not found" error page. 3. This is as per the docs, but my question is:
10
3533
by: erin.sebastian | last post by:
Hello Everyone, I have code that uploads files in asp. It seems to be working however on files > 200kb it bombs and i don't know why. Does anyone have any idea of why this would occur and what i can do to fix it? Thank you in advance!!!!
2
552
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've set the POST limit in php.ini to 8 megs. What reasons, other than the POST limit, would a large upload fail?
14
1956
by: Bryan Parkoff | last post by:
Do you know that current C++ Compiler limits to 64KB segments in source code? It is good news that Microsoft Visual C++ 2005 has expanded to 4GB segments in source code. 4GB segment is ideal for large object using pointer to function and switch. Please list other C++ Compilers if they have added a support of 4GB segments. I am able to write 65,536 functions and 65,536 function's memory address is stored into pointer to function list. ...
20
4283
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
21
34436
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
6
4864
by: howa | last post by:
Suppose the file is stored in "upload_tmp_dir ", so why I need to increase the memory limit? If I want to upload 100 MB, how large should I set? Thanks.
5
3289
by: camphor | last post by:
hi, I have found an upload script in hotscripts and have implemented it into the website, I followed the installation steps to 'give write permissions to php on the upload folder (which is _uploadedfiles_xxxx) (php must be allowed to move uploaded files to this folder' - uploadedfiles_xxxx. I typed <?php chmod ('_uploadedfiles_xxxx',640); ?> into notepad and saved it as php in the uploaded_xxxx folder, when I went to test it, the error...
0
9554
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
9378
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
10137
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...
0
9989
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
7360
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
6640
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
5268
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2788
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.