<google-2010@ryandesign.com> wrote:
>
> On Dec 28, 2010, at 09:44, Leandro Montero wrote:
>
>> In $this->data there is nothing!! I mean the file upload array doesn't
>> exist!
>
> If there's *nothing* in $this->data, i.e. no files, no other fields, then that means the size of the file you uploaded exceeded PHP's maximum POST data size. You can change this setting in your php.ini.
I think that's the likely issue, also. Note that this is different
than the max upload size, though. If that were the case, $this->data
would be there but the upload error would show that the file upload
size was exceeded.
And you should start debugging this from the add action in your
controller. Make sure that $this->data has what you expect before
checking the downstream methods you're calling. Add
die(debug($this->data)) to your actions to see what (if anything) has
been received by the server.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment