Merge pull request #18077 from owncloud/fix_18055
Set proper mimetype for directories
This commit is contained in:
commit
7f44b0fd18
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class Helper
|
|||
$i = array(
|
||||
'name' => $id,
|
||||
'mtime' => $timestamp,
|
||||
'mimetype' => \OC_Helper::getFileNameMimeType($id),
|
||||
'mimetype' => $view->is_dir($dir . '/' . $entryName) ? 'httpd/unix-directory' : \OC_Helper::getFileNameMimeType($id),
|
||||
'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file',
|
||||
'directory' => ($dir === '/') ? '' : $dir,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue