feature.fileapi : TypeError: undefined is not a function 에러
jquery.form.js의
feature.fileapi = $('<input type="file">').get(0).files !== undefined; 에서 에러가 난다.
jquery.form.js를 파일로 다운받아서 사용하였는데 버전의 문제인 듯 하여 cdn으로 갈아끼워주었더니 에러가 해결되었다.
<script type="text/javascript" src='http://malsup.github.com/jquery.form.js'></script>
'주말에 쓰는 개발일기 > javascript' 카테고리의 다른 글
chrome 80 samesite 정책 (크롬 / 엣지 결제모듈 인증모듈 사용 후 세션 유실) (1) | 2021.01.08 |
---|---|
ArrayList 함수 clear() UnsupportedOperationException 에러. (0) | 2021.01.08 |
[ajax, javascript] file upload 유효성검사 (0) | 2021.01.08 |
ajax 에러 확인 / err:SyntaxError: Unexpected token < in JSON at position 0 (0) | 2021.01.08 |
struts2, ajax, json, IE - FileUploader (0) | 2020.12.25 |