Problems Uploading Pictures over 1.3 MB Problems Uploading Pictures over 1.3 MB
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problems Uploading Pictures over 1.3 MB

Started by Gravy, February 12, 2004, 04:02:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gravy

This problem has had me baffled.  Whenever I try to upload a picture file that is around 1.3MB or above, I get a "object contains no data" error.  I did a few searches on these forums and found that it can be related to a few settings.  So far, I've edited the maximum file upload in Coppermine to 3072 Kb, then edited php.ini, making the max file upload size 10MB rather than the default 2MB.  I'm running out of ideas.  I saw a few people mentioning the httpd.conf files, but a quick search on google said that there really weren't any Apache settings for that.  My server is running on Redhat 9.0 with the latest version of image magic installed.  Any help will be greatly appreciated.  Thanks!

hyperion

From DevArticles.com:

QuoteHi all,
I was very happy with the document on how to create a multiple file-upload, and it works.
But: when a file is larger than 523670 bytes and try to upload, I get a popup from netscape telling me that the document contains no data.
This merely implies that no data was passed from my uploadForm2.php script to the processFiles.php script !!! WHY ??

In my php.ini, my upload_max_filesize is 20MB, post_max_size = 8M

Best guess from my side, that this isn't php related, but I have no cleu whatsoever what would be the cause of this.
Haven't found anything in apache config yet.

Then:

QuoteSHOOT, I just found it. In /etc/http/conf.d, there is a file called php.conf there is an entry :
#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
I changed that, and all goes fine now.

Perhaps that may help.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)