Hi Stefano,
Uploading files is really very simple. You may just be missing one of the very key things needed. It is well explained in the book: http://book.cakephp.org/view/303/File-Fields The things I remember as easy to forget are: • The form element needs to have the 'type'=>'file' set. • The way the file-data was stored for the controller can confuse at first. debug($this->data) is your friend They are both shown in the cookbook. /Martin On Jan 11, 4:44 am, Stefano Martins <[email protected]> wrote: > Hey folks, > > I'm begining with CakePHP and I'm thinking that it's a awesome > framework and I'm trying to imagine ways to do most any web > application with it. > > But, as beginners are just beginners, I'm having some problems with > it. > > This time, I'm trying to upload an image with a form. I was googling > through the web and in this group to find the best way to do it with > the new CakePHP version (1.2), because I've found several ways > explained in old blog posts to do it. Using a component, write it by > hand, etc. were the general solutions I've found so far. > > So, what is the best and simple way to accomplish image uploads using > forms and should we put it into the book available in the Cake's > website? > > Sorry about my lousy english. I'm brazilian. > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
