mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
파일 업로드시 동일한 파일(이미지등)일 경우 파일 이름에 번호를 부여하여 덮어써지지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6583 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c2bc3067a2
commit
69c9c5cb6c
2 changed files with 8 additions and 4 deletions
|
|
@ -243,7 +243,6 @@
|
|||
}
|
||||
|
||||
}
|
||||
debugPrint($obj->content);
|
||||
|
||||
// 문서 번호 설정
|
||||
$document_srl = getNextSequence();
|
||||
|
|
@ -265,7 +264,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$obj->content = str_replace($uploaded_target_path,sprintf('/files/attach/images/%s/%s%s', $this->module_srl, getNumberingPath($document_srl,3), $filename), $obj->content);
|
||||
$obj->content = str_replace($uploaded_target_path,sprintf('./files/attach/images/%s/%s%s', $this->module_srl, getNumberingPath($document_srl,3), $filename), $obj->content);
|
||||
|
||||
$oDocumentController = &getController('document');
|
||||
$obj->allow_comment = 'Y';
|
||||
|
|
@ -356,7 +355,7 @@
|
|||
$obj->uploaded_count += $file_count;
|
||||
}
|
||||
}
|
||||
$obj->content = str_replace($uploaded_target_path,sprintf('/files/attach/images/%s/%s%s', $this->module_srl, getNumberingPath($document_srl,3), $filename), $obj->content);
|
||||
$obj->content = str_replace($uploaded_target_path,sprintf('./files/attach/images/%s/%s%s', $this->module_srl, getNumberingPath($document_srl,3), $filename), $obj->content);
|
||||
|
||||
$oDocumentController = &getController('document');
|
||||
$output = $oDocumentController->updateDocument($oDocument,$obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue