I'm not going to touch on form->label, that isn't a part of my question.
I have looked at the code and can't figure out what is breaking, hence why I am asking here if anyone knows. The behaviour works for the first item (banners) just fine, uploads and thumbnails them perfectly. Same with other pages that I have only one file being uploaded, it works great. The problem is with the second file being uploaded, it uploads perfectly fine, it just doesn't get thumbnailed. On Apr 25, 3:38 pm, Aivaras <[email protected]> wrote: > Why in this world you're using $form->label()? CakePHP isn't that > complicated :o > > Did you actually check for any errors in the behaviour itself? Try to debug > parts of the code: start with small ones then go bigger and see where it > breaks. Then you will definitely find an answer :) > > Cheers, > Faifas > > On Sat, Apr 25, 2009 at 01:18, Arak Tai'Roth <[email protected]>wrote: > > > > > Anyone at all? I could really use some help on this. > > > On Apr 21, 1:02 pm, "Arak Tai'Roth" <[email protected]> wrote: > > > Anyone have any ideas on this topic? > > > > On Apr 20, 5:16 pm, "Arak Tai'Roth" <[email protected]> wrote: > > > > > Yup, the exact same permissions as the banners directory > > > > > On Apr 20, 4:09 pm, brian <[email protected]> wrote: > > > > > > Are the permissions for the posters dir good? > > > > > > On Mon, Apr 20, 2009 at 4:56 PM, Arak Tai'Roth < > > [email protected]> wrote: > > > > > > > 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 -~----------~----~----~----~------~----~------~--~---
