Answer the question
In order to leave comments, you need to log in
What causes an error when uploading a Laravel image?
Gives such an error.
Can't write image data to path (uploads/img.png)
Here is the code
if(Input::hasFile('file')) {
$file = Input::file('file');
$file = Image::make($file)->resize(300, 200)->save('uploads/img.png');
}
$file = Image::make($file)->resize(300, 200)->save('uploads/img.png');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question