hello partners, i wanna know if i can upload file or image using prototype in ajax application ?. i need some documentation about that if it is posible. thanks for your help ! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
The native xhr object (on which the Ajax implementation is based) doesn''t let you submit files (for security reasons). You can use an iframe to do so. Google for it, there lots of info on the web on how to do that. Best, Tobie On Dec 28, 9:59 pm, ecabrera <eud...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hello partners, i wanna know if i can upload file or image using > prototype in ajax application ?. > i need some documentation about that if it is posible. > thanks for your help !--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Tobie, I wonder , could you explain which security reasons? Thanks On 28 Aralık, 23:03, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The native xhr object (on which the Ajax implementation is based) > doesn''t let you submit files (for security reasons). > > You can use an iframe to do so. > > Google for it, there lots of info on the web on how to do that. > > Best, > > Tobie > > On Dec 28, 9:59 pm, ecabrera <eud...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > hello partners, i wanna know if i can upload file or image using > > prototype in ajax application ?. > > i need some documentation about that if it is posible. > > thanks for your help !- Alıntıyı gizle - > > - Alıntıyı göster ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On 29 Dec 2007, at 13:10, YargicX wrote:> I wonder , could you explain which security reasons?Javascript has no access rights to the local file system, it''s as simple as that. So if you want to simulate "ajax" uploads, you have to use either the iframe technique (posting your form to an iframe, then process the contents of the iframe back to the originating page) or a flash based solution such as swfupload (http://swfupload.org). Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Uploading your private documents without letting you know, for example. On Dec 29, 1:10 pm, YargicX <erencan.sagiro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Tobie, > I wonder , could you explain which security reasons? > > Thanks > > On 28 Aralık, 23:03, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The native xhr object (on which the Ajax implementation is based) > > doesn''t let you submit files (for security reasons). > > > You can use an iframe to do so. > > > Google for it, there lots of info on the web on how to do that. > > > Best, > > > Tobie > > > On Dec 28, 9:59 pm, ecabrera <eud...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > hello partners, i wanna know if i can upload file or image using > > > prototype in ajax application ?. > > > i need some documentation about that if it is posible. > > > thanks for your help !- Alıntıyı gizle - > > > - Alıntıyı göster ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---