maybe see output of the Form Helper in general I think it's <input type="text" name="data[model][field]" />
see "data[model][field]" here? you need to format your names this way to automatically populate $this->data var maybe just data[field] suffice, but I don't know as I always use FormHelper, you can try yourself On 4 fév, 08:05, Günther Theilen <thei...@eqi.de> wrote: > Hi, > > I'm a little bit lost here, maybe someone can help. > A file upload on one of my sites (Cake 1.2) "suddenly" stopped working. > The method isn't used very often so I can't exactly say since when it > doesn't work anymore but I know that my hoster has moved to a new data > center and I suspect that something went wrong. But neither me nor my > hoster's technical support have any clue what could have happened. > > The data send by the form just doesn't appear in $this->data anymore. > If I do a debug($_POST) or debug ($_FILES) in my controller after > sending the form I can see that the data is submitted but $this->data is > empty. > > I usually use the form helper but I even tried to build the simplest > possible form by myself: > > <form enctype="multipart/form-data" method="post" > action="/import_files/add"> > <input name="importfile" type="file"> > <br> > <input type="text" name="textfeld"> > <br> > <input type="submit"> > </form> > > Same result. I get data in $_POST and in $_FILES but $this->data is > completely empty. > > Any clues or hints where to look? > > Regards > Guenther --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---