Uploading files using AJAX
November 20, 2006 at 6:26 pm 8 comments
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, rails, RubyonRails, Technology, web development.
8 Comments Add your own
Leave a reply to Prakash Tandukar Cancel reply
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?
8. i can haz ajax? | July 21, 2009 at 9:55 pm
“How Gmail does it then?”
google do it with iframe?