mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
mid 확장자 지원
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dc5c356f2b
commit
6ecc16deef
3 changed files with 4 additions and 4 deletions
|
|
@ -263,7 +263,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 이미지인지 기타 파일인지 체크하여 upload path 지정
|
// 이미지인지 기타 파일인지 체크하여 upload path 지정
|
||||||
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|midi|asf)$/i", $file_info['name'])) {
|
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|mid|midi|asf)$/i", $file_info['name'])) {
|
||||||
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
|
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
|
||||||
$filename = $path.$file_info['name'];
|
$filename = $path.$file_info['name'];
|
||||||
$direct_download = 'Y';
|
$direct_download = 'Y';
|
||||||
|
|
@ -423,7 +423,7 @@
|
||||||
$old_file = $file_info->uploaded_filename;
|
$old_file = $file_info->uploaded_filename;
|
||||||
|
|
||||||
// 이미지인지 기타 파일인지 체크하여 이동할 위치 정함
|
// 이미지인지 기타 파일인지 체크하여 이동할 위치 정함
|
||||||
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|midi|asf)$/i", $file_info->source_filename)) {
|
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|mid|midi|asf)$/i", $file_info->source_filename)) {
|
||||||
$path = sprintf("./files/attach/images/%s/%s/", $target_module_srl,$target_srl);
|
$path = sprintf("./files/attach/images/%s/%s/", $target_module_srl,$target_srl);
|
||||||
$new_file = $path.$file_info->source_filename;
|
$new_file = $path.$file_info->source_filename;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -780,7 +780,7 @@
|
||||||
if(file_exists($file_obj->file)) {
|
if(file_exists($file_obj->file)) {
|
||||||
|
|
||||||
// 이미지인지 기타 파일인지 체크하여 upload path 지정
|
// 이미지인지 기타 파일인지 체크하여 upload path 지정
|
||||||
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|midi|asf)$/i", $file_obj->source_filename)) {
|
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)) {
|
||||||
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
|
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
|
||||||
$filename = $path.$file_obj->source_filename;
|
$filename = $path.$file_obj->source_filename;
|
||||||
$file_obj->direct_download = 'Y';
|
$file_obj->direct_download = 'Y';
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@
|
||||||
$name = $xmlDoc->attachment->name->body;
|
$name = $xmlDoc->attachment->name->body;
|
||||||
|
|
||||||
// 이미지인지 기타 파일인지 체크하여 upload path 지정
|
// 이미지인지 기타 파일인지 체크하여 upload path 지정
|
||||||
if(preg_match("/\.(jpg|jpeg|gif|png|wmv|wma|mpg|mpeg|avi|swf|flv|mp3|asaf|wav|asx|midi|asf)$/i", $file_obj->source_filename)) {
|
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)) {
|
||||||
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
|
$path = sprintf("./files/attach/images/%s/%s", $module_srl,getNumberingPath($upload_target_srl,3));
|
||||||
$filename = $path.$file_obj->source_filename;
|
$filename = $path.$file_obj->source_filename;
|
||||||
$file_obj->direct_download = 'Y';
|
$file_obj->direct_download = 'Y';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue