Saturday, June 30, 2012

Re: Undefined index after web host install.

Right I've done the info.php and file uploads are turned on and you are absolutely right, there is a max file size of 2mb for an upload. 
Thanks for helping me figure that one out :)
Much appreciated.

On Thursday, 28 June 2012 22:34:09 UTC+1, Guti Grewal 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

No comments: