php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29403 Failure of File Upload
Submitted: 2004-07-27 06:16 UTC Modified: 2004-08-18 15:21 UTC
From: markrx178 at yahoo dot com dot hk Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.3.8 OS: Fedora 2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: markrx178 at yahoo dot com dot hk
New email:
PHP Version: OS:

 

 [2004-07-27 06:16 UTC] 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).
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-31 03:21 UTC] 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-08-10 04:43 UTC] 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-08-18 15:21 UTC] tony2001@php.net
>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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC