Permalink
Browse files

New video formats in allowed_extensions

  • Loading branch information...
1 parent a5b1a56 commit fbfcb6d8aa1db76a4d58bd7435db4d2cfcf53b51 @chillu chillu committed May 29, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 filesystem/File.php
View
@@ -112,9 +112,9 @@ class File extends DataObject {
private static $allowed_extensions = array(
'','ace','arc','arj','asf','au','avi','bmp','bz2','cab','cda','css','csv','dmg','doc','docx',
'flv','gif','gpx','gz','hqx','htm','html','ico','jar','jpeg','jpg','js','kml', 'm4a','m4v',
- 'mid','midi','mkv','mov','mp3','mp4','mpa','mpeg','mpg','ogg','pages','pcx','pdf','pkg',
+ 'mid','midi','mkv','mov','mp3','mp4','mpa','mpeg','mpg','ogg','ogv','pages','pcx','pdf','pkg',
'png','pps','ppt','pptx','ra','ram','rm','rtf','sit','sitx','swf','tar','tgz','tif','tiff',
- 'txt','wav','wma','wmv','xhtml','xls','xlsx','xml','zip','zipx',
+ 'txt','wav','webm','wma','wmv','xhtml','xls','xlsx','xml','zip','zipx',
);
/**
@@ -127,7 +127,7 @@ class File extends DataObject {
"apl", "avr" ,"cda" ,"mp4" ,"ogg"
),
'mov' => array(
- "mpeg" ,"mpg" ,"m1v" ,"mp2" ,"mpa" ,"mpe" ,"ifo" ,"vob","avi" ,"wmv" ,"asf" ,"m2v" ,"qt"
+ "mpeg" ,"mpg" ,"m1v" ,"mp2" ,"mpa" ,"mpe" ,"ifo" ,"vob","avi" ,"wmv" ,"asf" ,"m2v" ,"qt", "ogv", "webm"
),
'zip' => array(
"arc" ,"rar" ,"tar" ,"gz" ,"tgz" ,"bz2" ,"dmg" ,"jar","ace" ,"arj" ,"bz" ,"cab"

0 comments on commit fbfcb6d

Please sign in to comment.