Closed BSE97 closed 11 years ago
I use Uploader 4.2.0 installed through composer
What Transit version is it?
1.3.2
Can you try updating to 1.3.3? I just wrote a test case and it seemed to work correctly.
I did make a change recently regarding this, so I believe it was in 1.3.3.
Actually, I think I noticed the problem. Gimme a few.
Ok I figured it out. Updating ti Transit 1.3.5 will fix it.
Great thank you
When I set overwrite to false the Uploader is renaming files with the same filename. But when i save this Filename in a database it only saves the original name and not the renamed one.
public $actsAs = array( 'Uploader.Attachment' => array( 'path' => array( 'tempDir' => TMP, 'uploadDir' => '/home/app/webroot/files/attachments/', 'finalPath' => 'attachments/', 'dbColumn' => 'path', 'defaultPath' => '', 'overwrite' => false, 'stopSave' => true, 'allowEmpty' => true, 'metaColumns' => array('name' => 'name', 'ext' => 'ext', 'basename' => 'basename'), ) ), );