summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-09-27 10:51:10 +0200
committerGitHub <noreply@github.com>2019-09-27 10:51:10 +0200
commitf23d49266f2184760647109e697b6e1efa470eef (patch)
treec43f32ad2c55e7895d30644743f304616c9c5571 /apps/workflowengine/lib
parent6a261953d47732b57716c6e4da4038536b00a289 (diff)
parent744b635d5cb885ad2086374eb5791a2c722960bb (diff)
downloadnextcloud-server-f23d49266f2184760647109e697b6e1efa470eef.tar.gz
nextcloud-server-f23d49266f2184760647109e697b6e1efa470eef.zip
Merge pull request #17286 from nextcloud/bugfix/noid/correctly-detect-mimetype-from-uploads
Correctly detect the mimetype from uploads
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r--apps/workflowengine/lib/Check/FileMimeType.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php
index 5bebaf9fc01..092dd74502d 100644
--- a/apps/workflowengine/lib/Check/FileMimeType.php
+++ b/apps/workflowengine/lib/Check/FileMimeType.php
@@ -111,7 +111,7 @@ class FileMimeType extends AbstractStringCheck implements IFileCheck {
$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) {