diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-26 17:43:47 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-09-26 17:43:47 +0200 |
commit | 744b635d5cb885ad2086374eb5791a2c722960bb (patch) | |
tree | 04e3fc2aa0df646818735c74b67a9e73c14abf38 /apps/workflowengine | |
parent | cc6874df193565725f4f6b806b84684bb41eceed (diff) | |
download | nextcloud-server-744b635d5cb885ad2086374eb5791a2c722960bb.tar.gz nextcloud-server-744b635d5cb885ad2086374eb5791a2c722960bb.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 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) { |