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 …

On 2/11/08, Muhammad I. [email protected] 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/

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 [email protected] wrote:


Ishaq
http://blogs.kahaf.com/ishaq

  • Programming can be fun, so can be cryptography, however they should
    not be
    combined …