Skip to content

Commit 7cceb66

Browse files
authored
Merge pull request #17295 from nextcloud/backport/17286/stable17
[stable17] Correctly detect the mimetype from uploads
2 parents 028568c + 3c937ca commit 7cceb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/workflowengine/lib/Check/FileMimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected function getActualValue() {
113113
$files = $this->request->getUploadedFile('files');
114114
if (isset($files['type'][0])) {
115115
$mimeType = $files['type'][0];
116-
if ($this->mimeType === 'application/octet-stream') {
116+
if ($mimeType === 'application/octet-stream') {
117117
// Maybe not...
118118
$mimeTypeTest = $this->mimeTypeDetector->detectPath($files['name'][0]);
119119
if ($mimeTypeTest !== 'application/octet-stream' && $mimeTypeTest !== false) {

0 commit comments

Comments
 (0)