ZF-4938: Error in Example 17.13. Add filters to a file transfer
Description
// 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'
Comments
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.