Its all about Ruby On Rails
Uploading files using AJAX
There is no way to upload files using AJAX. How Gmail does it then? Well, the answer is using <iframe>. Here is a post that describe this technique in detail. Infact we are using this technique from months, obviously inspired by Gmail.
update: Technically speaking, it’s not Ajax. Just an iframe hack. You are absolutly right Pratik.
| Print article | This entry was posted by Akhil Bansal on November 20, 2006 at 6:26 pm, and is filed under ROR, Rails, Rubyonrails, ajax, uploading. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
Technically speaking, it’s not Ajax. Just an iframe hack.
So there is no way to upload files using Ajax.
about 3 years ago
Some of my AJAX based work -
http://padmanijain.googlepages.com/myexperiments.html
I have used iframes here.
about 3 years ago
Hi Pratik,
Obviously this is not AJAX. Infact I have mentioned in my very first line that there is no way to upload files using AJAX.
about 3 years ago
“How Gmail does it then?”
Does what ?
about 3 years ago
I love how box.net people do it though. Pretty slick UI.
about 2 years ago
Oh, and did not know about it. Thanks for the information …