LinkedNestBlog

[jQuery] Ajax File Upload Issue in IE Browser

by jinwon lee

[jQuery] Ajax File Upload Issue in IE Browser



- Reference

face to 'access denied'  at ie8 when execute fileupload : https://github.com/malsup/form/issues/374


- Issue

ajax 파일업로드 시 인터넷 익스플로러 8 버전에서 'Access Denied' - jquery.form.js 오류를 뱉어내는 경우가 발생한다.


- Solution
시스템이 아닌 브라우저에서 뱉어내는 access denied를 처리하기 위해 약간의 꼼수(?)를 부리는 방법이 몇가지 있었다.

1. 하나는 직접적으로 input type='file' 태그를 건드리지 않고 label 을 사용하는 것이며, 

2. 또 다른 하나는 iframe을 이용하는 방법이 있었다.


개인적으로는 전자의 방법을 사용했다.