A couple of our clients reported that they cannot upload files in theire CMS, they keep getting half uploads or no uploads at all. So far it occurs with image and pdf files.

The weird thing is that whe cannot replicate the problem ourself, we've tried every possible browser version and operating system and we get a successful upload every single time! (very frustrating)

The site setup is very simple, a normal HTML with an upload input field, at the server side we just take the php _files directive and move the file to our own specific folder.

We built a debug and got the following;

first attempt:
[name] => Warmoesland 54.pdf
[type] => application/pdf
[tmp_name] => /tmp/phpLKndp4
[error] => 0
[size] => 47605

second attempt:
[name] => Warmoesland 54.pdf
[type] => application/pdf
[tmp_name] => /tmp/phpwMEuz3
[error] => 0
[size] => 51811

thirth attempt:
[name] => Warmoesland 54.pdf
[type] => application/pdf
[tmp_name] => /tmp/php3e80Lp
[error] => 0
[size] => 46224

Same file, everytime different filesize, but according to php.net:

Value: 0; There is no error, the file uploaded with success. 

The file in this example is approx. 2.8 Megabyte. We figured the client gets a connection timeout or somthing like that, so we decided to up all the apache/php settings, but still no solution.

- no php errors on screen or in log files
- no apache errors in log files
- no errors or warnings whatsoever

Our configuration:

Apache/2.0.52 (CentOS)
Max Requests    Per Child: 4000 - Keep Alive: on - Max Per Connection: 100 
Timeouts    Connection: 600 - Keep-Alive: 30 

PHP Version 4.3.9
Server API  Apache 2.0 Handler 
post_max_size   200M (php.ini)
memory_limit    1024M (ini_set())
max_execution_time  disabled (set_time_limit())
upload_max_filesize 25M (php.ini)

Every time we try it..it works, everytime the client tries it..it fails.. What are we missing here. Does anybody have an idea ?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.