Answer the question
In order to leave comments, you need to log in
Why is Encoding format (tmp) not supported?
Hello. I'm trying to save the image to the server, but an error occurs.
Here is the method that handles this:
public function store(Request $request)
{
$input = $request->all();
$img = Image::make($input['image'])->resize(700,500)->encode('jpg')->save('img/'.$input['image']);
$add = new Content();
$add->fill($input);
$add->save();
return response()->json($add);
}
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