Re: [fw-general] Zend_File_Transfer addFilter('Rename', ...

2008-10-08 Thread Thomas Weidner

Well...
I may be blind, but looking at the manual and also at my blog I see 3 
parameters.

Source, Target and Overwrite.
http://framework.zend.com/manual/en/zend.file.transfer.filters.html#zend.file.transfer.filters.rename

As your second parameter is no boolean he is used as target.
Which means all your source files are renamed to "1"... I dont really expect 
that this works...


Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - 
From: "summertime" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, October 09, 2008 1:07 AM
Subject: Re: [fw-general] Zend_File_Transfer addFilter('Rename', ...




exceptions are on... and the validators do work ( see attached screen 
capture

of error when I try to upload a pdf)

I got :

$upload->addFilter('Rename', '/var/www/gefanuc/web/files/newname.jpg', 1);


from
http://www.thomasweidner.com/flatpress/2008/09/07/destination-and-renaming-of-uploaded-files/
here . If I am missing a parameter, can you give me a hint as to what it 
is?

If this is the wrong place to ask for help of this kind can you tell me
where I should place these posts?
--
View this message in context: 
http://www.nabble.com/Zend_File_Transfer-addFilter%28%27Rename%27%2C-...-tp19886634p19889346.html
Sent from the Zend Framework mailing list archive at Nabble.com. 




Re: [fw-general] Zend_File_Transfer addFilter('Rename', ...

2008-10-08 Thread summertime

exceptions are on... and the validators do work ( see attached screen capture
of error when I try to upload a pdf)

I got :

$upload->addFilter('Rename', '/var/www/gefanuc/web/files/newname.jpg', 1);


from 
http://www.thomasweidner.com/flatpress/2008/09/07/destination-and-renaming-of-uploaded-files/
here . If I am missing a parameter, can you give me a hint as to what it is?
If this is the wrong place to ask for help of this kind can you tell me
where I should place these posts?
-- 
View this message in context: 
http://www.nabble.com/Zend_File_Transfer-addFilter%28%27Rename%27%2C-...-tp19886634p19889346.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_File_Transfer addFilter('Rename', ...

2008-10-08 Thread Thomas Weidner

How about switching on exceptions ??

Your validators do not work... missing an parameter.
Also your filter will not work... missing parameter.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

- Original Message - 
From: "summertime" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, October 08, 2008 10:11 PM
Subject: [fw-general] Zend_File_Transfer addFilter('Rename', ...




My file is uploading, and being error checked, but it's not being renamed 
but

I can't figure out why:

$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('FilesSize', array('3kB', '4MB'));
$upload->addValidator('Extension',  array('gif', 'jpg'));

$upload->setDestination('/var/www/gefanuc/web/files');
$upload->addFilter('Rename', '/var/www/gefanuc/web/files/newname.jpg', 1);

if (!$upload->receive()) {
  $messages = $upload->getMessages();
  echo implode("\n", $messages);
}


when I print out the $upload array I can see that my filter is set up 
right,

but my file never gets renamed. What an I missing
--
View this message in context: 
http://www.nabble.com/Zend_File_Transfer-addFilter%28%27Rename%27%2C-...-tp19886634p19886634.html
Sent from the Zend Framework mailing list archive at Nabble.com. 




[fw-general] Zend_File_Transfer addFilter('Rename', ...

2008-10-08 Thread summertime

My file is uploading, and being error checked, but it's not being renamed but
I can't figure out why:

$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('FilesSize', array('3kB', '4MB'));
$upload->addValidator('Extension',  array('gif', 'jpg'));

$upload->setDestination('/var/www/gefanuc/web/files');
$upload->addFilter('Rename', '/var/www/gefanuc/web/files/newname.jpg', 1);

if (!$upload->receive()) {
   $messages = $upload->getMessages();
   echo implode("\n", $messages);
}


when I print out the $upload array I can see that my filter is set up right,
but my file never gets renamed. What an I missing
-- 
View this message in context: 
http://www.nabble.com/Zend_File_Transfer-addFilter%28%27Rename%27%2C-...-tp19886634p19886634.html
Sent from the Zend Framework mailing list archive at Nabble.com.