파일 업로드시 여러파일이 올라가지 않던 문제와 여러 파일 일괄 삭제시 하나씩만 지워지는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4726 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-10-29 23:42:43 +00:00
parent bc129ff038
commit ea0701a7f2
2 changed files with 4 additions and 4 deletions

View file

@ -160,6 +160,7 @@ function uploadProgress(file, bytesLoaded, bytesTotal) {
function uploadSuccess(file, serverData) {
try {
if(this.getStats().files_queued !== 0) this.startUpload();
} catch (ex) {
this.debug(ex);
}
@ -324,7 +325,7 @@ function removeUploadedFile(editorSequence) {
if(file_srls.length<1) return;
var params = new Array();
params["file_srl"] = file_srls.join(',');
params["file_srls"] = file_srls.join(',');
params["editor_sequence"] = editorSequence;
var response_tags = new Array("error","message");
exec_xml("file","procFileDelete", params, function() { reloadFileList(settings); } );

View file

@ -120,15 +120,14 @@
// 기본적으로 필요한 변수인 upload_target_srl, module_srl을 설정
$editor_sequence = Context::get('editor_sequence');
$file_srl = Context::get('file_srl');
$file_srls = Context::get('file_srls');
if($file_srls) $file_srl = $file_srls;
// 업로드 권한이 없거나 정보가 없을시 종료
if(!$_SESSION['upload_info'][$editor_sequence]->enabled) exit();
$upload_target_srl = $_SESSION['upload_info'][$editor_sequence]->upload_target_srl;
if($upload_target_srl && $file_srl) $output = $this->deleteFile($file_srl);
// 첨부파일의 목록을 java script로 출력
// $this->printUploadedFileList($editor_sequence, $upload_target_srl);
}
/**