diff --git a/src/Api/ScoreControllerProvider.php b/src/Api/ScoreControllerProvider.php index cdbd648..e9b6d2c 100644 --- a/src/Api/ScoreControllerProvider.php +++ b/src/Api/ScoreControllerProvider.php @@ -165,7 +165,7 @@ class ScoreControllerProvider implements ControllerProviderInterface $filename = $file->getClientOriginalName(); $ext = $file->getClientOriginalExtension(); if($ext != 'jpg' || $file->getMimeType() != 'image/jpeg') { - return new JsonResponse(['success' => false, 'message' => "Image not image/jpeg"], 400); + return new JsonResponse(['success' => false, 'message' => "Image not image/jpeg but " . $file->getMimeType() . " (".$ext.")"], 400); }