mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#r18940383 파일 업로드시 실패 message 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7582 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
041aaa8f25
commit
e4575cd65a
10 changed files with 28 additions and 2 deletions
|
|
@ -417,7 +417,7 @@
|
|||
}
|
||||
|
||||
// 디렉토리 생성
|
||||
if(!FileHandler::makeDir($path)) return false;
|
||||
if(!FileHandler::makeDir($path)) return new Object(-1,'msg_not_permitted_create');
|
||||
|
||||
// 파일 이동
|
||||
if($manual_insert) {
|
||||
|
|
@ -431,7 +431,7 @@
|
|||
if(!@move_uploaded_file($file_info['tmp_name'], $filename)) {
|
||||
$ext = substr(strrchr($file_info['name'],'.'),1);
|
||||
$filename = $path. md5(crypt(rand(1000000,900000).$file_info['name'])).'.'.$ext;
|
||||
if(!@move_uploaded_file($file_info['tmp_name'], $filename)) return false;
|
||||
if(!@move_uploaded_file($file_info['tmp_name'], $filename)) return new Object(-1,'msg_file_upload_error');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue