I'm having a problem while using the getRealPath function.
$file = Input::file('archivo');
$img = Image::make($file->getRealPath());
I'm getting this exception:
NotReadableException in AbstractDecoder.php line 302. Image Not Readable.
I tried printing the value for $file->getRealPath() with dd() function and it prints false. Also I tried using dd(Input::hasFile( 'archivo' )) and that returned me true.
I can't seem to find an answer, I have tried almost everything I think.
So basically I want to know 2 things:
- Why is
getRealPathreturning me false and not the path? - How am I supposed to send the route to
Image::make(), I keep getting the annoying exception mentioned before even replacinggetRealPath(),and sending instead the route aspublic_path()."routestring".