Now, in my Listing Model im using:

    var $actsAs = array(
        'ImageUpload' => array(
            'fileField'             => 'logo',
            'allowedMime'            => array('image/jpeg', 'image/gif', 
'image/png', 'image/bmp'),
            'allowedExt'            => array('jpeg', 'jpg', 'gif', 
'png', 'bmp'),
            'allowedSize'            => '5',
            'baseDir'                => '{APP}uploads',
            'dirFormat'                => '{$class}/{$id}',
            'fileFormat'            => '{$dir}/{$filename}',
            'factoryMode'            => true
        )
    );

And i get the following errors:

Warning (2): mkdir() [http://php.net/function.mkdir]: Permission denied 
[CORE/cake/libs/folder.php, line 480]

Code | Context

$pathname    =    "/my/httpdocs/app/uploads{$class}"
$mode    =    "0755"
$nextPathname    =    "/my/httpdocs/app"

....

*Query:* SELECT `Listing`.`id` FROM `mgc_listings` AS `Listing` WHERE 
`dir` = '{$class}/{$id}' AND `logo` = 'class_id_cmxform_divider.gif' LIMIT 1


Thanks in advance.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to