From: Joas Schilling Date: Thu, 26 Sep 2019 15:43:47 +0000 (+0200) Subject: Correctly detect the mimetype from uploads X-Git-Tag: v15.0.13rc1~39^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba247125a6776902e4537fdd35d7e480ea2f0c7d;p=nextcloud-server.git Correctly detect the mimetype from uploads Signed-off-by: Joas Schilling --- 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) {