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

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

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

Fixed with r12630

Changing issues in preparation for the 1.7.0 release.