From 0afa1297e9a606705475f4c4cebc673d38153d2f Mon Sep 17 00:00:00 2001 From: Ruben Date: Mon, 12 Sep 2016 17:53:02 +0100 Subject: [PATCH] more detailed error --- src/Api/ScoreControllerProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }