LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

Got access is denied error on IE8 #166

Open tdk2nyt opened 8 years ago

tdk2nyt commented 8 years ago

My code like the following:

test.html:

<--div xxx> <--div class="row" style="padding-top:10px;"> // code from index.html in example <--/div> <--/div>

test.js:

var pageUrl = "test.html";

var updatePage = function(res) { var btn = document.getElementById('uploadBtn'), progressBar = document.getElementById('progressBar'), progressOuter = document.getElementById('progressOuter'), msgBox = document.getElementById('msgBox');

var uploader = new ss.SimpleUpload({ // code from index.html in example }); };

Ajax({ ... url:pageUrl, complete: updatePage});

chose file in page, I got

Commencing upload using iframe access is denied

I googled this error, and tried to modify iframe.src to change document.domain, I didn't succeed unfortunately. Is there any other workaround? Thanks!

LPology commented 8 years ago

Are you attempting a cross domain upload?

tdk2nyt commented 8 years ago

I tried cross domain upload, this error disappeared, but the operation failed with line 1293: the msgLoaded is false, I guess it's because of the file size is too large(20M). I tested the following 4 sizes in IE8: 300K, 12M, 18M, 25M, the first twos succeeded, the others failed, could you give any advice to support large file upload with this pluggin? Thanks!