mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 12:52:19 +09:00
Merge #1758 이미지 파일 업로드시 본문 자동삽입되도록 수정 by YJSoft
* pr/1758: source_filename으로 확장자 체크하도록 수정 이미지 파일 업로드시 본문 자동삽입되도록 수정
This commit is contained in:
commit
fa32b47539
2 changed files with 14 additions and 1 deletions
|
|
@ -46,6 +46,12 @@ class fileController extends file
|
|||
|
||||
$output = $this->insertFile($file_info, $module_srl, $upload_target_srl);
|
||||
Context::setResponseMethod('JSON');
|
||||
$this->add('file_srl',$output->get('file_srl'));
|
||||
$this->add('file_size',$output->get('file_size'));
|
||||
$this->add('direct_download',$output->get('direct_download'));
|
||||
$this->add('source_filename',$output->get('source_filename'));
|
||||
$this->add('download_url',$output->get('uploaded_filename'));
|
||||
$this->add('upload_target_srl',$output->get('upload_target_srl'));
|
||||
if($output->error != '0') $this->stop($output->message);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue