Can you throw some debug($path)'s in Uploader.delete() to see if its 
generating the correct absolute path.

On Thursday, March 8, 2012 9:38:05 PM UTC-8, CrotchFrog wrote:
>
> Using Cake 2.1 & Uploader 3.3
>
> 'Uploader.Attachment' => array(
> 'fileName' => array(
> 'name' => 'generateFilename', 
> 'baseDir' => '',     
> 'uploadDir' => 'img/artist',                 
> 'dbColumn' => 'path',        
> 'importFrom' => '', 
> 'defaultPath' => '', 
> 'maxNameLength' => 30, 
> 'overwrite' => true, 
> 'stopSave' => true, 
> 'allowEmpty' => false, 
> 'transforms' => array(), 
> 's3' => array(), 
> 'metaColumns' => array( 
> 'ext' => 'ext',
> 'type' => 'type',
> 'size' => 'size',
> 'group' => 'group',
> 'width' => '',
> 'height' => '',
> 'filesize' => 'filesize',
>                                 'name' => 'name'
> )
> )
> )
>
> public $belongsTo = array(
>             
> 'Artist' => array(
> 'className' => 'Artist',
> 'foreignKey' => 'artist_id',
> 'conditions' => '',
> 'fields' => '',
> 'order' => ''
> )
> );
>
> - ED 
>
> On Thursday, March 8, 2012 3:56:50 AM UTC-5, CrotchFrog wrote:
>>
>> @Miles, 
>>
>> With the newest version of your uploader, when deleting a row from the db 
>> the corresponding file should be deleted locally. 
>>
>> I have everything else working great except for file deletion. 
>>
>> What am I overlooking? 
>>
>> Regards, 
>> ED 
>>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to