Add extra file types - Refs #1209
This commit is contained in:
parent
9d5a4dafc4
commit
e6bfa5b970
|
|
@ -50,14 +50,17 @@
|
|||
RewriteCond %{REQUEST_URI} !\.woff
|
||||
RewriteCond %{REQUEST_URI} !\.woff2
|
||||
RewriteCond %{REQUEST_URI} !\.ttf
|
||||
RewriteCond %{REQUEST_URI} !\.flv
|
||||
RewriteCond %{REQUEST_URI} !\.wmv
|
||||
RewriteCond %{REQUEST_URI} !\.mp3
|
||||
RewriteCond %{REQUEST_URI} !\.ogg
|
||||
RewriteCond %{REQUEST_URI} !\.wav
|
||||
RewriteCond %{REQUEST_URI} !\.avi
|
||||
RewriteCond %{REQUEST_URI} !\.mov
|
||||
RewriteCond %{REQUEST_URI} !\.mp4
|
||||
RewriteCond %{REQUEST_URI} !\.mpeg
|
||||
RewriteCond %{REQUEST_URI} !\.webm
|
||||
RewriteCond %{REQUEST_URI} !\.ogg
|
||||
RewriteCond %{REQUEST_URI} !\.mkv
|
||||
RewriteCond %{REQUEST_URI} !docs/.*
|
||||
RewriteCond %{REQUEST_URI} !themes/.*
|
||||
RewriteRule ^ index.php [L,NC]
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ class MediaLibraryItem
|
|||
*/
|
||||
protected static $defaultTypeExtensions = [
|
||||
'image' => ['gif', 'png', 'jpg', 'jpeg', 'bmp'],
|
||||
'video' => ['mp4', 'avi', 'mov', 'mpg'],
|
||||
'audio' => ['mp3', 'wav', 'wma', 'm4a']
|
||||
'video' => ['mp4', 'avi', 'mov', 'mpg', 'mpeg', 'mkv', 'webm'],
|
||||
'audio' => ['mp3', 'wav', 'wma', 'm4a', 'ogg']
|
||||
];
|
||||
|
||||
protected static $imageExtensions;
|
||||
|
|
|
|||
Loading…
Reference in New Issue