Skip to content
This repository has been archived by the owner. It is now read-only.

Error: No conversion from text to iframe #601

Closed
StealthRT opened this issue Sep 9, 2011 · 9 comments
Closed

Error: No conversion from text to iframe #601

StealthRT opened this issue Sep 9, 2011 · 9 comments

Comments

@StealthRT
Copy link

@StealthRT StealthRT commented Sep 9, 2011

I am getting that error after selecting a .jpg using IE 9. What can i do to correct this error?

Thanks!

David

@blueimp
Copy link
Owner

@blueimp blueimp commented Sep 9, 2011

Did you include the iframe transport plugin?

@StealthRT
Copy link
Author

@StealthRT StealthRT commented Sep 9, 2011

Hum I don't think I have. Where do I need to go to download that and how do I implement it in the code?

Thanks again for your reply,

David

@StealthRT StealthRT closed this Sep 9, 2011
@StealthRT StealthRT reopened this Sep 9, 2011
@blueimp
Copy link
Owner

@blueimp blueimp commented Sep 9, 2011

It's included in the download package:
https://github.com/blueimp/jQuery-File-Upload/archives/master

No need to implement anything, just include the iframe transport together with the other plugin files.

@StealthRT
Copy link
Author

@StealthRT StealthRT commented Sep 9, 2011

Ah ok. Well i did include it in my code and i no longer get that error but i only get a progress bar and nothing else (no progress seen). It just stays there.

@hirenmistry87
Copy link

@hirenmistry87 hirenmistry87 commented Dec 17, 2011

I have included the iframe transport plugin in my project but still it shows me the error "No conversion from text to iframe" in IE. what should I need to do for it?

@kirikintha
Copy link

@kirikintha kirikintha commented Apr 11, 2012

Hi everyone, I had this same error in IE9 using Windows 7 64bit. VM, or not - I got this error.

My setup is definitely custom, and I realized that this line of code in jquery.iframe-transport.js

approx line 38: if (options.async && (options.type === 'POST' || options.type === 'GET')) {

if I set:

$('#my-form-example').fileupload('option', {
//options here
async: false,
cache: false,
//more options here
});

making the async option 'false' - this turns off the iframe transport. I'll be honest, I can't remember exactly why I set this here, but what I did was make a conditional for IE8/9 to make async = true, so that options.async is true.

I am not sure exactly why async needs to be true here, but it works! Any clarification on the quirkiness on IE here is helpful, if only to document the insanity!

Thanks for a great plug-in!

@blueimp
Copy link
Owner

@blueimp blueimp commented Apr 11, 2012

The Iframe Transport doesn't support synchronous uploads, which is why the async option has to be true.
It is basically just a check if multiple transports are registered to select the right one.
You might want to refer to jQuery's documentation on AJAX Transports for more information:
http://api.jquery.com/extending-ajax/#Transports

@blueimp blueimp closed this Apr 11, 2012
@kirikintha
Copy link

@kirikintha kirikintha commented Apr 23, 2012

Nice! Thanks so much for the clarification!

@Quadratica
Copy link

@Quadratica Quadratica commented May 27, 2012

This 3D was very very useful for me!
Thank for your OS software !
Thank you all !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants