It looks to me like your code is expecting a key, 'Upload' in the
request data. What does your form look like?
Also, debug($this->request-data)
On Thu, Jun 28, 2012 at 5:34 PM, Guti Grewal <gutigrewal@googlemail.com> wrote:
> Hi I've uploaded my website on a free hosting site called 000webhost, it
> works fine on localhost but however when I try to upload a file to the
> server using a form I get thrown this error.
>
> Notice (8): Undefined index: Upload [APP/Controller/UploadsController.php,
> line 32]
> Code
>
> UploadsController::add() - APP/Controller/UploadsController.php, line 32
> ReflectionMethod::invokeArgs() - [internal], line ??
> Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
> Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 103
> Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85
> [main] - APP/webroot/index.php, line 96
>
>
> I can't for the life of me figure out what is going wrong?
>
> I've set the permissions for the webroot/files/uploads folder to 777, so it
> can't possibly be that.
>
> Anyone have any ideas?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
Friday, June 29, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment