Gregory Hill
2005-Dec-14 15:59 UTC
RE: Form.serialize and Ajax.Request->fileserialization and encoding
I''d bet money that they use a hidden iframe. Gmail already uses that to avoid breaking the back button, from what I''ve read. It''s impossible to send multipart form data through XMLHttpRequest, or so everything I read says and my own personal attempts confirm. There is an IE ActiveX plugin that will let you send files in a similar fashion, but it''s IE only. I forget the name of it at this moment. Greg ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Paul Shannon Sent: Wednesday, December 14, 2005 8:52 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails-spinoffs] Form.serialize and Ajax.Request->fileserialization and encoding I''ve not looked into how it''s done but adding an attachment in Gmail (UK version) uploads the file without refreshing the window, and http://www.yousendit.com <http://www.yousendit.com/> appears to send a file via some sort of RPC or AJAX. Maybe this could be another starting point for you. Paul Shannon Web Applications Developer Codeweavers Limited Tel: 0870 443 0888 Fax: 0870 443 0889 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Jonathan
2005-Dec-14 16:40 UTC
Re: Form.serialize and Ajax.Request->fileserialization and encoding
No you can''t and you don''t want to, it would be a security flaw. Javascript just can''t read files on your computer otherwise any website could get all your personal data. Gregory Hill wrote:> > I’d bet money that they use a hidden iframe. Gmail already uses that > to avoid breaking the back button, from what I’ve read. It’s > impossible to send multipart form data through XMLHttpRequest, or so > everything I read says and my own personal attempts confirm. There is > an IE ActiveX plugin that will let you send files in a similar > fashion, but it’s IE only. I forget the name of it at this moment. > > Greg > > ------------------------------------------------------------------------ > > *From:* rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] *On Behalf Of > *Paul Shannon > *Sent:* Wednesday, December 14, 2005 8:52 AM > *To:* rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Subject:* RE: [Rails-spinoffs] Form.serialize and > Ajax.Request->fileserialization and encoding > > I’ve not looked into how it’s done but adding an attachment in Gmail > (UK version) uploads the file without refreshing the window, and > http://www.yousendit.com <http://www.yousendit.com/> appears to send a > file via some sort of RPC or AJAX. Maybe this could be another > starting point for you. > > *Paul Shannon* > > *Web Applications Developer* > > * * > > *Codeweavers Limited* > > Tel: 0870 443 0888 > > Fax: 0870 443 0889 > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Tarek Ziadé
2005-Dec-14 17:01 UTC
Re: Form.serialize and Ajax.Request->fileserialization and encoding
On 12/14/05, Jonathan <jonathan.semczyk-USVAFLyk/PzcrNgOQeE3mA@public.gmane.org> wrote:> > No you can''t and you don''t want to, it would be a security flaw. > Javascript just can''t read files on your computer otherwise any website > could get all your personal data.Yes right I understand that. an extra piece of software is needed then :''( (ocx or firefox plugin) Tarek _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Maybe Matching Threads
- RE: Form.serialize and Ajax.Request ->fileserialization and encoding
- IE6 Text Selection Problem
- Prototype Based Validation with form_remote_tag
- Setting a HTML ID with form_tag / form_remote_tag
- RE: Form.serialize and Ajax.Request -> fileserialization and encoding