mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 02:01:40 +09:00
Add missing result fields to procFileIframeUpload
모바일 스킨에서 파일 업로드 자체구현할 때 종종 사용하는 액션인데 mp4 썸네일 주소 등 라이믹스에서 추가한 필드들이 반환되지 않아 스킨에서 연동하기 어려운 문제를 보완합니다.
This commit is contained in:
parent
4f41362efe
commit
4460de58fd
2 changed files with 8 additions and 0 deletions
|
|
@ -198,6 +198,7 @@ class fileController extends file
|
|||
if(is_uploaded_file($file_info['tmp_name'])) {
|
||||
$output = $this->insertFile($file_info, $module_srl, $upload_target_srl);
|
||||
Context::set('uploaded_fileinfo',$output);
|
||||
Context::set('module_srl', $module_srl);
|
||||
}
|
||||
|
||||
Context::set('layout','none');
|
||||
|
|
|
|||
|
|
@ -10,6 +10,13 @@
|
|||
uploaded_fileinfo.source_filename = '{$uploaded_fileinfo->get('source_filename')}';
|
||||
uploaded_fileinfo.upload_target_srl = '{$uploaded_fileinfo->get('upload_target_srl')}';
|
||||
uploaded_fileinfo.uploaded_filename = '{$uploaded_fileinfo->get('uploaded_filename')}';
|
||||
<!--@if($uploaded_fileinfo->get('direct_download') === 'Y')-->
|
||||
uploaded_fileinfo.download_url = '{FileModel::getDirectFileUrl($uploaded_fileinfo->get("uploaded_filename"))}';
|
||||
<!--@else-->
|
||||
uploaded_fileinfo.download_url = '{FileModel::getDownloadUrl($uploaded_fileinfo->get("file_srl"), $uploaded_fileinfo->get("sid"), $module_srl)}';
|
||||
<!--@end-->
|
||||
uploaded_fileinfo.thumbnail_filename = '{$uploaded_fileinfo->get("thumbnail_filename")}';
|
||||
uploaded_fileinfo.original_type = '{$uploaded_fileinfo->get("original_type")}';
|
||||
<!--@else-->
|
||||
uploaded_fileinfo.error = -1;
|
||||
uploaded_fileinfo.message = '{$uploaded_fileinfo->message}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue