#44420 [Opn]: upload_tmp_dir directive in php.ini ignored for file uploads
| From: | kalle@php.net | Date: | Tue, 18 Nov 2008 00:38:41 +0000 |
| Subject: | #44420 [Opn]: upload_tmp_dir directive in php.ini ignored for file uploads | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131053@lists.php.net to get a copy of this message | ||
ID: 44420
Updated by: kalle@php.net
Reported By: jturner at paycomonline dot com
Status: Open
Bug Type: IIS related
Operating System: Windows Server 2003
PHP Version: 5.2.5
New Comment:
I'm not totally sure, but I think its somehow related to the path like:
X:\dir~1\..., can you try without using the ~N syntax?
Previous Comments:
------------------------------------------------------------------------
[2008-11-13 15:39:59] alb dot amati at tiscali dot it
It seems I have the same problem.
Exactly the same configuration.
Any workaround?
Thanx
Alb
------------------------------------------------------------------------
[2008-03-13 13:17:04] jturner at paycomonline dot com
Yes, the IWAM and IUSR accounts both have read, write, and list folder
contents rights in the ACL for that directory. I forgot to mention
yesterday that I have PHP set to run as an ISAPI module.
------------------------------------------------------------------------
[2008-03-13 12:19:49] jani@php.net
Is that path writable/readable by the user with which the webserver
runs as?
------------------------------------------------------------------------
[2008-03-12 16:36:02] jturner at paycomonline dot com
Description:
------------
The upload_tmp_dir directive is set in the php.ini to
"C:\DOCUME~1\ADMINI~1.HQ-\LOCALS~1\Temp\php\upload" and shows up as such
when running phpinfo(). However, when I try to upload a file it fails,
and print_r($_FILES) reports that "tmp_name" is set to
"C:\WINDOWS\TEMP\[filename]". It appears that the directive is being
ignored in favor of the environment variable, which is contrary to the
documentation.
PHP5.2.5/IIS6.0/Windows Server 2003
A search of the bug database turned up bug #39451 which appears to be
similar but was marked as fixed in 5.2.1RC3.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44420&edit=1