Hacker News new | past | comments | ask | show | jobs | submit login

Note the suspicious lack of commentary on which version of IE supports XMLHttpRequest level 2. Is it supported? And is there an elegant way to fallback to the old iframe approach? Conditionally including Javascript files seems to be a poor choice, I'm not sure if I'd rather just stick with the old way, even if it's awkward.

--------

An aside: I found the "XMLHttpRequest Level 2" name to be pretty funny. I'm not sure why it tickled my funny bone in such a way.

    A wild XMLHttpRequest (lvl 1) appears!
    Engineer uses SendFile... it doesn't seem to be working.
    Engineer is defeated!

    A wild XMLHttpRequest (lvl 2) appears.
    Engineer uses SendFile... it's super effective!



To my knowledge, XMLHttpRequest Level 2 isn't supported in any shipping version of IE. I haven't tried IE9 yet, so it might be available there. When building the actual production uploader for onehub.com, I drew a line in the sand and decided not to support any fallback scenarios, at least for the first iteration. If you'd like, fork the uploader on github and hack away :)


Thanks. I just might, next time I need to do file uploads... I've been really enamored with Sinatra as of late, and it seems like every side project I do needs file uploading...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: