From 98d7c1bfb072b48053ba88662332ec584e60c0cf Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 6 Jun 2017 17:31:04 +0300 Subject: [PATCH] Fix mimetype detection for trashbin --- apps/files_trashbin/lib/Helper.php | 1 + 1 file changed, 1 insertion(+) 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;