I am working on a project that needs file uploading. I have implemented Dropzone.js and Laravel Framework. I am sure I have setup everything correctly, but when I drop the files to dropzone and they finish upload I get this error
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Call to a member function getRealPath() on a non-object","file":"C:\\wamp\\www\\local\\app\\controllers\\AssetsController.php","line":119}}
This is my route
Route::post('create/album','AssetsController@album');
This is my Controller
$path = "assets";
$fileee = Input::file('file');
Image::make($fileee->getRealPath())->resize(500, null, true)->save($path);
When i check with laravel if there is a file it returns NULL but when i var_dump() the Input::file() i get an array of file related data, I have searched the web and cant seem to find anything.
Thanks in advance!