Skip to content

NotReadableException in Decoder.php line 46: #669

@ezekel

Description

@ezekel

@olivervogel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions