mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 07:21:03 +02:00
Fixes #651 - Media-Manager - Uploaded file does not display in selection.
This commit is contained in:
@@ -382,8 +382,10 @@ class e_file
|
||||
$finfo['fname'] = basename($path_to_file);
|
||||
$finfo['path'] = dirname($path_to_file).'/';
|
||||
|
||||
// $finfo['mime'] = vartrue($finfo['mime'],'application/'.$finfo['pathinfo']['extension']);
|
||||
|
||||
if(empty($finfo['mime'])) // last resort.
|
||||
{
|
||||
$finfo['mime'] = 'application/'.$finfo['pathinfo']['extension'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user