Advanced search  

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

Pages: [1]   Go Down

Author Topic: Problems Uploading Pictures over 1.3 MB  (Read 3972 times)

0 Members and 1 Guest are viewing this topic.

Gravy

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Problems Uploading Pictures over 1.3 MB
« on: February 12, 2004, 04:02:10 am »

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!
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Problems Uploading Pictures over 1.3 MB
« Reply #1 on: February 12, 2004, 05:00:00 am »

From DevArticles.com:

Quote

Hi 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:

Quote

SHOOT, 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.
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.