1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Media-Manager Issue #3200 Work in Progress. Local video-file browser.

This commit is contained in:
Cameron
2018-07-16 17:14:10 -07:00
parent bac96528fc
commit bb7f8717fa
3 changed files with 197 additions and 40 deletions

View File

@@ -411,7 +411,28 @@ class e_file
if(empty($finfo['mime'])) // last resort.
{
$finfo['mime'] = 'application/'.$finfo['pathinfo']['extension'];
switch($finfo['pathinfo']['extension'])
{
case "mp3":
$finfo['mime'] = 'audio/mpeg';
break;
case "ogg":
$finfo['mime'] = 'audio/ogg';
break;
case "mp4":
$finfo['mime'] = 'video/mp4';
break;
case "3gp":
$finfo['mime'] = 'video/3gpp';
break;
default:
$finfo['mime'] = 'application/'.$finfo['pathinfo']['extension'];
}
}