LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2002, 07:05 PM   #1
merana
Member
 
Registered: May 2002
Location: Philly/So. Jersey
Distribution: ESXi CentOS Red-Hat Ubuntuu Solaris Debian
Posts: 85

Rep: Reputation: 15
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?
 
Old 10-15-2002, 09:56 PM   #2
bah
Member
 
Registered: Apr 2001
Posts: 38

Rep: Reputation: 15
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 ....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
Escaping host limits in PHP hw-tph Programming 7 09-22-2004 03:46 AM
php, apache, POST/GET data jhaiduce Linux - Software 0 12-17-2003 04:02 PM
open file limits in 2.4 kernel/apache? eva2000 Linux - Newbie 8 07-29-2002 07:14 PM
RH7.1 c Apache PHP can't Post mrl Linux - General 1 05-27-2001 08:54 PM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration