Hi AD7Six,

I was seeing your behaviors, they looks very cool and useful. I was
wondering how to use the upload and image_upload behaviors without
using the attachments table.
...can just be a file field in your products table, or a dedicated
'attachments' table...

My field is logo, im using the following actsAs in my Listing model.

        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',
                        'allowedSizeUnits'              => 'MB',
                        'overwriteExisting'             => true,
                        'autoCreateVersions'    => true,
                        'baseDir'                               => 
'{APP}uploads',
                        'dirFormat'                             => '{class}',
                        'factoryMode'                   => true
                )
        );


But i a get a lot of warnings.

Any help is welcome. Thank you.
--~--~---------~--~----~------------~-------~--~----~
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