#29403 [Opn->Bgs]: Failure of File Upload
| From: | tony2001@php.net | Date: | Wed, 18 Aug 2004 13:21:22 +0000 |
| Subject: | #29403 [Opn->Bgs]: Failure of File Upload | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64847@lists.php.net to get a copy of this message | ||
ID: 29403
Updated by: tony2001@php.net
Reported By: markrx178 at yahoo dot com dot hk
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: Fedora 2
PHP Version: 4.3.8
New Comment:
>Should my tmp folder be owned by Apacher group/user.
yes
>Is that why I'm the exact same frustrating problem that markx is
having?
no, read the documentation, as was pointed above.
Previous Comments:
------------------------------------------------------------------------
[2004-08-10 04:43:10] emaynard at emaynard dot org
Should my tmp folder be owned by Apacher group/user. Is that why I'm
the exact same frustrating problem that markx is having?
------------------------------------------------------------------------
[2004-07-31 03:21:34] php at sharpdreams dot com
Please review the information on
http://www.php.net/manual/en/features.file-upload.php
including the
user comments.
You will never see a temporary file created by PHP as long as PHP is
doing its job correctly. PHP removes those temporary files at the end
of the request unless they are moved/renamed.
------------------------------------------------------------------------
[2004-07-27 06:16:09] markrx178 at yahoo dot com dot hk
Description:
------------
Dear Guru,
I had installed the 4.3.8-3 rpm for Fedora in an Apache 2.0.50
environment.
After installation of some community suites (like xoops, phpnuke, etc.
), I found all of the upload functions failed strangely.
I go further to suspect some setting may be wrong about my php.conf.
However, after extensive searching, I found my settings (including
FileUploads on, tmp_dir = /www/tmp, etc.) should probably be correct.
* I have checked the tmp directory is owned and writeable by apache.
I therefore write a very simple file upload to check the correct
functioning of file upload.
http://ootlinux01.homelinux.net:8000/testupload.html
(It will POST to a .php file which simply display phpinfo())
and check whether the tmpfile would be created in the destinated
directory.
I cannot find the expected new tmpfile.
Would someone know what's has gone wrong or is it some unmatched
version among Apache and PHP ?
I would be grateful for your kind assistance.
Thank you for your help.
Best Regards,
Mark
Reproduce code:
---------------
http://ootlinux01.homelinux.net:8000/testupload.html
(It will POST to a .php file which simply display phpinfo())
However, the expected tmpfile in the tmp directory was not found.
Expected result:
----------------
I expected a tmpfile could be found.
Actual result:
--------------
Nothing found in the tmp directory (as I specified in php.conf).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29403&edit=1