No, it is not possible. It''s a security precaution so that you
can''t use javascript to access data on someone''s hard drive.
You have to post the form to an iframe if you want to upload it without
reloading the page.
Greg
> -----Original Message-----
> From:
rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-
> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of
Grzesiek Slusarek
> Sent: Thursday, May 18, 2006 4:05 PM
> To: rails-spinoffs
> Subject: [Rails-spinoffs] sending Form with fieldtype FILE by AJAX
>
> Hi all. Is it possible to send a form with a FILE type field by
> ajax? I try to capture value of that field by $F and append it to
> param and send call by it look like it failed. Maybe some change
> on header on something? What do you think about that?
> really thanks for any help
> Gregor
>
> ----------------------------------------------------
> Dwór Artusa PKO BP 2006 Puchar Świata we Florecie kobiet
> w Gdańsku 19-21.05.2006 Zobacz w akcji najlepsze florecistki świata!
> Szczegóły: http://klik.wp.pl/?adr=www.floret.pl&sid=762
>
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs