Skip to content

Commit

Permalink
Merge pull request #17297 from nextcloud/backport/17286/stable15
Browse files Browse the repository at this point in the history
[stable15] Correctly detect the mimetype from uploads
  • Loading branch information
rullzer committed Sep 30, 2019
2 parents 07c43e6 + ba24712 commit 1a37beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/workflowengine/lib/Check/FileMimeType.php
Expand Up @@ -113,7 +113,7 @@ protected function getActualValue() {
$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) {
Expand Down

0 comments on commit 1a37beb

Please sign in to comment.