#17614142 미디어 파일 : 지원 확장자 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5270 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-07 07:50:34 +00:00
parent 6ecc16deef
commit 6c51879800
3 changed files with 4 additions and 4 deletions

View file

@ -285,7 +285,7 @@
$name = $xmlDoc->attachment->name->body;
// 이미지인지 기타 파일인지 체크하여 upload path 지정
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|mid|midi|asf)$/i", $file_obj->source_filename)) {
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp1|mp2|mp3|asaf|wav|asx|mid|midi|asf|mov|moov|qt|rm|ram|ra|rmm)$/i", $file_obj->source_filename)) {
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
$filename = $path.$file_obj->source_filename;
$file_obj->direct_download = 'Y';