Skip to content

Commit f23d492

Browse files
Merge pull request #17286 from nextcloud/bugfix/noid/correctly-detect-mimetype-from-uploads
Correctly detect the mimetype from uploads
2 parents 6a26195 + 744b635 commit f23d492

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/workflowengine/lib/Check/FileMimeType.php

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

0 commit comments

Comments
 (0)