refactor : 대용량 파일 솔루션 첨부가능한 확장자 옵션 추가
This commit is contained in:
parent
9b27f07475
commit
00b7163919
@ -67,6 +67,8 @@
|
|||||||
, height:80
|
, height:80
|
||||||
, width: 600
|
, width: 600
|
||||||
, maxFileCount : 1 // 첨부파일 최대 갯수
|
, maxFileCount : 1 // 첨부파일 최대 갯수
|
||||||
|
, allowExtension : ["txt","xls","xlsx","png","jpg","jpeg","doc","ppt","hwp","pdf","zip"]
|
||||||
|
// 가능한 확장자 txt|xls|xlsx|png|jpg|jpeg|doc|ppt|hwp|pdf|zip
|
||||||
});
|
});
|
||||||
|
|
||||||
// 업로드 완료 후 이벤트
|
// 업로드 완료 후 이벤트
|
||||||
@ -136,7 +138,7 @@
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
/* 등록되어 있는 파일 삭제버튼 클릭시 */
|
/* 등록되어 있는 파일 삭제버튼 클릭시 */
|
||||||
function delAtchFile(itemId , fileSn){
|
/* function delAtchFile(itemId , fileSn){
|
||||||
if(!confirm("삭제하시겠습니까?")){
|
if(!confirm("삭제하시겠습니까?")){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -180,7 +182,7 @@
|
|||||||
alert("삭제처리에 실패하였습니다.");
|
alert("삭제처리에 실패하였습니다.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
} */
|
||||||
|
|
||||||
|
|
||||||
//거래선 업로드
|
//거래선 업로드
|
||||||
@ -204,7 +206,6 @@
|
|||||||
var postObj = new Object();
|
var postObj = new Object();
|
||||||
postObj.innoDirPath = $('#innoDirPath').val();
|
postObj.innoDirPath = $('#innoDirPath').val();
|
||||||
control.setPostData(postObj); // 업로드시 함께 전달될 POST Param 추가
|
control.setPostData(postObj); // 업로드시 함께 전달될 POST Param 추가
|
||||||
// 가능한 확장자 txt|xls|xlsx|png|jpg|jpeg|doc|ppt|hwp|pdf|zip
|
|
||||||
control.upload(); // 업로드 시작
|
control.upload(); // 업로드 시작
|
||||||
}else{
|
}else{
|
||||||
alert("등록된 첨부파일이 없습니다.");
|
alert("등록된 첨부파일이 없습니다.");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user