Strange file upload problem

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2005
daveholden60@hotmail.com
 
Posts: n/a
Default Strange file upload problem

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

Reply With Quote
  #2 (permalink)  
Old 11-25-2005
Erwin Moller
 
Posts: n/a
Default Re: Strange file upload problem

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0