diff --git a/src/app/parameter/controllers/ParameterController.php b/src/app/parameter/controllers/ParameterController.php index 92ce1ff34bb16e41c798eb0eeda97025cdd59253..6c984b4deecb71d5244c8c3f54ae7ac203ae7598 100755 --- a/src/app/parameter/controllers/ParameterController.php +++ b/src/app/parameter/controllers/ParameterController.php @@ -111,7 +111,7 @@ class ParameterController return $response->withStatus(400)->withJson(['errors' => 'Body image is not a base64 image']); } $tmpFileName = $tmpPath . 'parameter_logo_' . rand() . '_file.svg'; - $body['logo'] = str_replace('data:image/svg+xml;base64,', '', $body['logo']); + $body['logo'] = str_replace('data:image/svg+xml;base64,', '', $body['image']); $file = base64_decode($body['logo']); file_put_contents($tmpFileName, $file);