Muhammad Ishaq
2008-Feb-11 10:24 UTC
Is it possible to post multi-part forms using rails/ruby
Hi, I need to provide functionality to upload files to blip.tv which means programmatically posting multi-part form to blip, is it possible to do so in ruby (Net::HTTP only provides simple form posting). Any help would be greatly appreciated. -- Ishaq http://blogs.kahaf.com/ishaq - Programming can be fun, so can be cryptography, however they should not be combined ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick DeNatale
2008-Feb-11 14:26 UTC
Re: Is it possible to post multi-part forms using rails/ruby
On 2/11/08, Muhammad Ishaq <ishaq.malik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I need to provide functionality to upload files to blip.tv which > means programmatically posting multi-part form to blip, is it possible to do > so in ruby (Net::HTTP only provides simple form posting). > > Any help would be greatly appreciated.Use the option :multipart => true in your form_tag or form_for helper invocation. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Muhammad Ishaq
2008-Feb-11 19:03 UTC
Re: Is it possible to post multi-part forms using rails/ruby
Hi Rick, sorry I didn''t clearly state what I meant, actually I need to programmatically upload files to a site (i.e. similar functionality like Net::HTTP:get). http://wiki.rubyonrails.org/rails/pages/HowToSendAFileByPostMultipart this post is quite helpful, let me know if you know any other resources. On Feb 11, 2008 7:26 PM, Rick DeNatale <rick.denatale-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 2/11/08, Muhammad Ishaq <ishaq.malik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > > I need to provide functionality to upload files to blip.tvwhich > > means programmatically posting multi-part form to blip, is it possible > to do > > so in ruby (Net::HTTP only provides simple form posting). > > > > Any help would be greatly appreciated. > > Use the option :multipart => true in your form_tag or form_for helper > invocation. > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > > > >-- Ishaq http://blogs.kahaf.com/ishaq - Programming can be fun, so can be cryptography, however they should not be combined ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---