Answer the question
In order to leave comments, you need to log in
NotReadableException laravel how to solve the problem?
Hello. There was a problem, I spent a lot of time, I didn’t find a solution anywhere (
In short, I’m trying to upload a picture, I use Intervantion image .
A piece of script:
$image = Image::make($imageInstance);
$newFilePath = 'app/public/static/articles/' . $articleId . '/' . $uniqueFilename . '.' . $imageExtension;
$image = $image->save(storage_path($newFilePath));
Answer the question
In order to leave comments, you need to log in
The name of the exception speaks for itself "Not readable" - that is, not readable. The program cannot access the image. Apparently you don't have permission to read the file. Change them with chmod.
The image has no name, the script instead of the file gets the folder in which it lies. The script swears that the picture did not come to him, so look at the path
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question