ZF-4938: Error in Example 17.13. Add filters to a file transfer

Issue Type: Docs: Problem Created: 2008-11-13T03:40:59.000+0000 Last Updated: 2008-11-13T14:10:27.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Goran Juric (gog) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:


// Set a new destination path $upload->addFilter('Rename', 'C:\picture\uploads');

// Set a new destination path and overwrites existing files

$upload->addFilter('Size', array('C:\picture\uploads', true));

Second filter should also be 'Rename', not 'Size'


Posted by Goran Juric (gog) on 2008-11-13T08:23:30.000+0000

Actually, this is completely wrong. For overwriting files one should use:

$upload->addFilter('Rename', array( 'target' => 'C:\picture\uploads', 'overwrite' => true ) );

Posted by Thomas Weidner (thomas) on 2008-11-13T10:42:31.000+0000

Fixed with r12630

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:27.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.