Merge #1758 이미지 파일 업로드시 본문 자동삽입되도록 수정 by YJSoft

* pr/1758:
  source_filename으로 확장자 체크하도록 수정
  이미지 파일 업로드시 본문 자동삽입되도록 수정
This commit is contained in:
Kijin Sung 2015-10-08 15:09:02 +09:00
commit fa32b47539
2 changed files with 14 additions and 1 deletions

View file

@ -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);
}