1
0
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:
Cameron
2015-02-07 11:57:28 -08:00
parent 8afe6edfea
commit 25b96411e0
4 changed files with 44 additions and 22 deletions

View File

@@ -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'];
}