diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index 6ca430d9ac..f50ce9432f 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -231,12 +231,7 @@ class filespec { if ($this->mimetype_guesser !== null) { - $mimetype = $this->mimetype_guesser->guess($filename); - - if ($mimetype !== 'application/octet-stream') - { - $this->mimetype = $mimetype; - } + $this->mimetype = $this->mimetype_guesser->guess($filename); } return $this->mimetype;