From f849740e05df7223dc425df73a32616449dcce5b Mon Sep 17 00:00:00 2001 From: moriony Date: Fri, 25 Aug 2017 15:05:26 +0300 Subject: [PATCH] Fix mime type check --- Services/FileUploader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/FileUploader.php b/Services/FileUploader.php index a5c96c7..7187566 100644 --- a/Services/FileUploader.php +++ b/Services/FileUploader.php @@ -47,7 +47,7 @@ public function __construct( */ public function upload(UploadedFile $file) { - $fileMimeType = $file->getClientMimeType(); + $fileMimeType = $file->getMimeType(); if ($this->allowedTypes && !in_array($fileMimeType, $this->allowedTypes)) { throw new \InvalidArgumentException( sprintf('Files of type %s are not allowed.', $fileMimeType)