From ba247125a6776902e4537fdd35d7e480ea2f0c7d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 26 Sep 2019 17:43:47 +0200 Subject: [PATCH] Correctly detect the mimetype from uploads Signed-off-by: Joas Schilling --- apps/workflowengine/lib/Check/FileMimeType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php index 5f572f5aa9d..4dda26c7459 100644 --- a/apps/workflowengine/lib/Check/FileMimeType.php +++ b/apps/workflowengine/lib/Check/FileMimeType.php @@ -113,7 +113,7 @@ class FileMimeType extends AbstractStringCheck { $files = $this->request->getUploadedFile('files'); if (isset($files['type'][0])) { $mimeType = $files['type'][0]; - if ($this->mimeType === 'application/octet-stream') { + if ($mimeType === 'application/octet-stream') { // Maybe not... $mimeTypeTest = $this->mimeTypeDetector->detectPath($files['name'][0]); if ($mimeTypeTest !== 'application/octet-stream' && $mimeTypeTest !== false) { -- 2.39.5