mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
파일업로드시 영문파일이 아니라서 업로드가 안되는 경우 파일이름을 변환하여 업로드 하도록 코드 변경. 윈도우서버에서 파일업로드를 위한 코드
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4371 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5e4347ca0b
commit
60f8e724b9
1 changed files with 8 additions and 2 deletions
|
|
@ -279,8 +279,14 @@
|
|||
if(!FileHandler::makeDir($path)) return false;
|
||||
|
||||
// 파일 이동
|
||||
if(!$manual_insert&&!move_uploaded_file($file_info['tmp_name'], $filename)) return false;
|
||||
elseif($manual_insert) @copy($file_info['tmp_name'], $filename);
|
||||
if($manual_insert) @copy($file_info['tmp_name'], $filename);
|
||||
else {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
// 사용자 정보를 구함
|
||||
$oMemberModel = &getModel('member');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue