php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32387 Problem with upload_tmp_dir when set as "Per Directory Value"
Submitted: 2005-03-20 22:32 UTC Modified: 2005-03-21 15:35 UTC
From: ricike at aporisk dot hu Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.10 OS: Windows Server 2003 / IIS 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ricike at aporisk dot hu
New email:
PHP Version: OS:

 

 [2005-03-20 22:32 UTC] ricike at aporisk dot hu
Description:
------------
I have changed in php.ini the upload_tmp_dir to a directory which i want to use for most of the websites.

And i used the "Per Directory Values" thing in the registry for a specific website's wwwroot to use an other temp dir for file uploads.

When phpinfo() is called, it says the correct local and master values, but when i upload a file, it is uploaded into the the temp directory specified in php.ini, not to the directory specified for that website.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-21 01:40 UTC] ricike at aporisk dot hu
I tried the snapshot. The situation is the same, phpinfo() shows the correct configuration, but $_FILES["file"]["tmp_name"] always points to the path defined in php.ini, regardless of the Per Directory Values.
 [2005-03-21 08:20 UTC] sniper@php.net
Ah yes, this is the inherent problem of using the registry.
The values from it are used AFTER upload has already happened 
(and just before script is executed)

Moving to documentation problem, there was also other one..

 [2005-03-21 15:28 UTC] ricike at aporisk dot hu
Hmmm. It is easy to say, "this is not a bug, this is a feature." :))

Can we expect that it will be possible in a future release to configure upload_tmp_dir on per directory or per website basis? For example, PHP reads php.ini and Per Directory Values together at startup? Or by extensing the IIS metabase, like using php_admin_value in httpd.conf with Apache?
 [2005-03-21 15:35 UTC] vrana@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Duplicate of bug #32337.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 22:01:26 2024 UTC