Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-09-30 18:11:05 +0300
committerGitHub <noreply@github.com>2019-09-30 18:11:05 +0300
commit1a37bebc787e6874fcfd14f40bd53719371f841d (patch)
tree887077edf17b7f8a019ead28d95aa92cd2779e37 /apps/workflowengine
parent07c43e69cb0bb11ff1bc76053acf7f4fb310537d (diff)
parentba247125a6776902e4537fdd35d7e480ea2f0c7d (diff)
Merge pull request #17297 from nextcloud/backport/17286/stable15
[stable15] Correctly detect the mimetype from uploads
Diffstat (limited to 'apps/workflowengine')
-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 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) {