diff --git a/lib/private/files/type/detection.php b/lib/private/files/type/detection.php index d8a8338282..e84c63875c 100644 --- a/lib/private/files/type/detection.php +++ b/lib/private/files/type/detection.php @@ -93,6 +93,10 @@ class Detection { //trim the newline $mimeType = trim($reply); + if (empty($mimeType)) { + $mimeType = 'application/octet-stream'; + } + } return $mimeType; }