// zipFile 체크
function fileCheck(objValue) {
var frm = document.templetform;
var filetype = objValue.substring(objValue.lastIndexOf('.'), objValue.length).toLowerCase();
if (filetype != ".zip" && filetype != ".tar"){
alert("압축파일만 업로드 가능합니다.");
return false;
}return true;
}
Tag : JavaScript, 파일체크