LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP/Apache 2.0 POST limits (https://www.linuxquestions.org/questions/linux-software-2/php-apache-2-0-post-limits-32809/)

merana 10-14-2002 07:05 PM

PHP/Apache 2.0 POST limits
 
Hi All!

I got a good amount of detail on this question so hang on:

Environment:

Redhat 7.3
Apache 2.0
PHP 4.4.0-DEV
Gallery v1.3.2-cvs-b10

Background:

The Gallery project allows users to post their own photos to the server and to manipulate them online. It then displays the pictures in an album.

The problem:

While I can upload to the Gallry by SFTP'ing the images to a temp directory, ideally you can also use the included web browser upload client provided via some PHP scripts. When ever I use this HTTP base upload method the files get truncated and jibberish is recieved. IF I upload these photos normally and then have the application render them it works fine.

You can see some results in the test gallery over at my site.

Based on my snooping I have learned that when you have finished selecting the local file you want to send and then select the upload button then a form post is done and the files DOES get sent to the server albeit in a few parts and I am unsure why. When I look in the temp dir that the application puts the files in I see several files when there should only be one or two.

I've set the upload size in php.ini to be around 20M so that's not the issue as the image sizes are only typically 300-400K in size. Smaller (sub 100K) images seem to survive unscathed.

After I reset the variables in php.ini I also sighup'ed the Apache Daemon. Maybe I'll try the full stop and start and see if that has any better effects...

Any suggestions to try next? :confused:

bah 10-15-2002 09:56 PM

I think there is also a post_max_size variable that can be set in the php.ini.

I seem to remember that there's also an apache option to limit the upload size, but I can't remember what it's called ....


All times are GMT -5. The time now is 08:10 PM.