diff --git a/apps/files_trashbin/lib/Helper.php b/apps/files_trashbin/lib/Helper.php index 423f47a2b9da..c570a5f4d231 100644 --- a/apps/files_trashbin/lib/Helper.php +++ b/apps/files_trashbin/lib/Helper.php @@ -114,6 +114,7 @@ public static function formatFileInfos($fileInfos) { $entry['id'] = $id++; $entry['etag'] = $entry['mtime']; // add fake etag, it is only needed to identify the preview image $entry['permissions'] = \OCP\Constants::PERMISSION_READ; + $entry['mimetype'] = \OC::$server->getMimeTypeDetector()->detectPath($entry['name']); $files[] = $entry; } return $files;