-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
I have image from my mobile phone, when I tried to upload in our web server using Laravel, it threw error
NotReadableException in Decoder.php line 46:
Unable to read image from file
this is my code
$filename = $request->upimg->getClientOriginalName();
$image = $request->upimg->getRealPath();
$path =public_path() . '/userimg/';
$fimage = Image::make($image)->resize(48, null,true);
$fimage->save($path . $filename);
But when i open the image in the paint and save as . I can upload in the server, but I don't want my users to open in paint and do save as in order to upload their profile pic.
Thank you in advance.
andrew-za and LechuuuS
Metadata
Metadata
Assignees
Labels
No labels