This is a discussion on Strange file upload problem within the PHP General forums, part of the PHP Programming Forums category; I have Googled the crap out of this problem and I cannot find a solution anywhere. Hopefully someone will be ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have Googled the crap out of this problem and I cannot find a
solution anywhere. Hopefully someone will be able to help me out with it. I have a RH8 server running Apache 2.0.54 and PHP 5.0.2 that refuses to process HTTP file uploads of JPG files from a digital camera. It always returns with an error 3 (incomplete file) in the ["userfile"] array. The array contains the correct file name in the ["name"] field but the ["error"] field contains 3 and the ["size"] field contains 0. The file is obviously being uploaded from my browser to the server because of the delay after hitting the submit button, plus the $_FILES array does have the file name in it. I have tried the following steps to correct this issue: 1) Checked and rechecked httpd.conf settings including subordinate php.config file (which does not exist in my install) 2) Checked php.ini settings. File uploading is turned on and max file size is set to 8M 3) Checked permissions on the /tmp folder to make sure that they are set to 0777 4) Checked the error logs and they contain the usual batch of favicon.ico errors and startup and shutdown messages but no errors coming from the scripts that are doing the file requesting or processing. 5) Set the MAX_FILE_SIZE on the form to an appropriately large value. 5) Checked the error logging to ensure that it is turned on and set to ALL. I am going crazy here because all of this worked fine on the last server that these scripts were installed on. Any help or suggestions would be appreciated. Thank you Dave Holden |
|
|||
|
daveholden60@hotmail.com wrote:
> I have Googled the crap out of this problem and I cannot find a > solution anywhere. Hopefully someone will be able to help me out with > it. I have a RH8 server running Apache 2.0.54 and PHP 5.0.2 that > refuses to process HTTP file uploads of JPG files from a digital > camera. It always returns with an error 3 (incomplete file) in the > ["userfile"] array. The array contains the correct file name in the > ["name"] field but the ["error"] field contains 3 and the ["size"] > field contains 0. The file is obviously being uploaded from my browser > to the server because of the delay after hitting the submit button, > plus the $_FILES array does have the file name in it. > > I have tried the following steps to correct this issue: > > > 1) Checked and rechecked httpd.conf settings including subordinate > php.config file (which does not exist in my install) > > 2) Checked php.ini settings. File uploading is turned on and max file > size is set to 8M > > 3) Checked permissions on the /tmp folder to make sure that they are > set to 0777 > > 4) Checked the error logs and they contain the usual batch of > favicon.ico errors and startup and shutdown messages but no errors > coming from the scripts that are doing the file requesting or > processing. > > 5) Set the MAX_FILE_SIZE on the form to an appropriately large value. > > 5) Checked the error logging to ensure that it is turned on and set to > ALL. > > I am going crazy here because all of this worked fine on the last > server that these scripts were installed on. Any help or suggestions > would be appreciated. > > Thank you > > Dave Holden Well, this may not be a great help, but I switched back to Apache 1 when trying to get POSTGRESQL and PHP running on Debian. :-/ Worked like a charm. ;-) Apache 2 gave me a headache. Regards, Erwin Moller |