No, it's not really a bug. :-)
upload_tmp_dir is used by php when it get the file from your webserver.
When you call "receive" on the file adapter, the file is already there, in
this temporary location.
Only, when you forget to set a destination, the file adapter tries to detect
a directory where it can store the file.
Using the same directory for storing the files and as tmp upload dir is
problematic as files in this directory are automatically be deleted from
time to time.
So what you want it a feature request, for a new temporary directory, when
someone forgots to set a destination, but not a bug. :-)
And the request is already added, but 1.7 is already fixed and no new
feature is allowed to be added in 1.7...
We'll have to wait some days. See ZF-4921
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Vladas Diržys" <[EMAIL PROTECTED]>
To: "Thomas Weidner" <[EMAIL PROTECTED]>
Sent: Wednesday, November 12, 2008 4:50 PM
Subject: Re: [fw-general] Zend_File_Transfer - is this a BUG?
Ok, it works.
But anyway, _getTmpDir ignores the upload_tmp_dir ini parameter, and IMHO
its a bug ;-)
--
Pagarbiai,
Vladas Diržys
Tel.: +370 620 69020
www.dirzys.com
On Wed, Nov 12, 2008 at 2:44 PM, Thomas Weidner
<[EMAIL PROTECTED]>wrote:
Why don't you simply set a destination like shown in the manual ? ;-)
->setDestination('my/destination/path');
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message ----- From: "Vladas Diržys" <
[EMAIL PROTECTED]>
To: "fw-general" <[email protected]>
Sent: Wednesday, November 12, 2008 11:36 AM
Subject: [fw-general] Zend_File_Transfer - is this a BUG?
Hello,
I have a problem on a unix server using Zend_File_Transfer
(Zend_Form_Element_File).
I try to upload a file and i get an exception "The given destination is
no
directory or does not exist".
In general the reason for this error is that I'm using different
'upload_tmp_dir',
but the _getTmpDir method just looks for sys_get_temp_dir() and doesn't
tries to look for
ini_get('upload_tmp_dir');
So is this a bug, or exists here some workaround?
--
Pagarbiai,
Vladas Diržys
Tel.: +370 620 69020
www.dirzys.com