Uploading files using AJAX
November 20, 2006
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.
Entry Filed under: Ajax, RubyonRails, Technology, rails, web development. .
7 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed







1.
Pratik | November 21, 2006 at 5:40 am
Technically speaking, it’s not Ajax. Just an iframe hack.
So there is no way to upload files using Ajax.
2.
Vineet Jain | November 21, 2006 at 6:04 am
Some of my AJAX based work –
http://padmanijain.googlepages.com/myexperiments.html
I have used iframes here.
3.
Akhil Bansal | November 21, 2006 at 11:09 am
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.
4.
Pratik | November 23, 2006 at 7:35 am
“How Gmail does it then?”
Does what ? ;-)
5.
Pratik | November 23, 2006 at 7:35 am
I love how box.net people do it though. Pretty slick UI.
6.
Rajesh | December 5, 2006 at 1:33 pm
i need tree on ruby on rails.any one knows tell me please
7.
Prakash Tandukar | December 31, 2006 at 1:12 pm
Could please show me some code?