Я получаю внутреннюю ошибку сервера при попытке переместить изображение в publi c:
$image = $request->get('image');
$image = explode(";", $image)[1];
$image = explode(",", $image)[1];
$image = str_replace(" ", "+", $image);
$image = base64_decode($image);
//This line of code is causing internal server error when try to move the image to the public folder .
file_put_contents("public/milename.jpeg", $image);
Как устранить эту ошибку, успешно переместив изображение в папку publi c. Я застрял здесь, любой совет. Пожалуйста! * * 1004