버튼 클릭시 파일 업로드 하는 방법에 대해서 알아보자
카테고리 없음
2018. 10. 27. 09:57
1. HTML 엑셀업로드 2. JS function afterFileChange(){ var formData = new FormData(); formData.append("excelFile", $("#file")[0].files[0]); $(".preloader").fadeIn(); debugger; $.ajax({ url : "/rest/home/uploadExcel", data : formData, dataType : 'json', processData : false, contentType : false, type : 'POST', success : function(data) { if( data.result == 'SUCCESS'){ searchList(); }else{ var Ca = /\+/g; ..