File 폼 확장자 체크하기
파일 폼 업로드전 jQuery를 이용하여 확장자를 체크할 수 있다 [예제] 12345678910111213<input type="file" id="file"> <script>$("#file").change(function(){ if( $(this).val() != "" ){ var ext = $(this).val().split('.').pop().toLowerCase(); if($.inArray(ext, ['gif','png','jpg','jpeg']) == -1) { alert('gif,png,jpg,jpeg 파일만 업로드 할수 있..