So I have my MeioUpload set up:
var $actsAs = array(
'MeioUpload' => array(
'banner' => array(
'dir' => 'img/events/banners',
'create_directory' => false,
'allowed_mime' => array('image/jpeg',
'image/pjpeg', 'image/
png'),
'allowed_ext' => array('.jpeg', '.jpg',
'.png'),
'thumbsizes' => array(
'large' => array('width' =>
950, 'height' => 170)
)
),
'poster' => array(
'dir' => 'img/events/posters',
'create_directory' => false,
'allowed_mime' => array('image/jpeg',
'image/pjpeg', 'image/
png'),
'alowed_ext' => array('.jpeg', '.jpg',
'.png'),
'thumbsizes' => array(
'large' => array('width' =>
300, 'height' => 465)
)
)
),
'Sluggable' => array(
'label' => 'name',
'overwrite' => true
)
);
and it works great. However there is one problem, the poster picture
uploads, but no thumbnail is generated. I can't figure out for the
life of my why no thumbnail is generated. My code for the add and edit
views are:
echo $form->label('Event.banner', 'Banner:');
echo $form->input('Event.banner', array('label' =>
false, 'type' =>
'file'));
echo $form->label('Event.poster', 'Poster:');
echo $form->input('Event.poster', array('label' =>
false, 'type' =>
'file'));
So still the same code between them, just different variable names,
yet it doesn't work.
Does anyone have a clue why the banner image would be uploaded and
thumbnailed appropriately, but the poster image wouldn't be?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---