diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-26 17:43:47 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-09-27 08:51:59 +0000 |
commit | 3c937ca39617d1105e0b92ac437d9022a1c642ca (patch) | |
tree | 796018639c58ec48ab449049c4de88f2bd1a1705 /apps/workflowengine | |
parent | 072d51ec08479ddb7f5e0268fe21b162378360fc (diff) | |
download | nextcloud-server-3c937ca39617d1105e0b92ac437d9022a1c642ca.tar.gz nextcloud-server-3c937ca39617d1105e0b92ac437d9022a1c642ca.zip |
Correctly detect the mimetype from uploads
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/lib/Check/FileMimeType.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |