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 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

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tarek Ziadé
Sent: 14 December 2005 15:49
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Form.serialize and Ajax.Request ->fileserialization and encoding

 

On 12/14/05, Gregory Hill <[EMAIL PROTECTED]> wrote:

 

1/ I am trying to send a multipart/form-data encoded form through Ajax with
   by calling Form.serialize, but it seems that files fields does not support this very well

   Is there any special mode to use ?

 

You cannot send a file through Ajax.  You'll have to submit the form normally.  To mimic Ajax functionality, you could set the target to a hidden iframe, and on the server side, have it load some _javascript_ that affects the parent window after it's done.   Good luck.


Ok, i'll see if i can use encoded hidden b64 text field then, thx

 

Greg


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




--
Tarek Ziadé | www.afpy.org
Python - why settle for snake oil when you can have the whole snake?
(Mark Jackson)

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to