# Is it possible to post multi-part forms using rails/ruby

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758>\
**Category:** Rails\
**Created:** [February 11, 2008, 11:25am UTC](https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758 "2008-02-11T11:25:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqbalhyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d78d45/32.png) [@iqbalhyd](https://www.ruby-forum.com/u/iqbalhyd)\
**Post date:** [February 11, 2008, 11:25am UTC](https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758/1 "2008-02-11T11:25:51Z")

</div>

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](http://blogs.kahaf.com/ishaq)

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

---

<div class="post-metadata">

**Author:** ![iqbalhyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d78d45/32.png) [@iqbalhyd](https://www.ruby-forum.com/u/iqbalhyd)\
**Post date:** [February 11, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758/2 "2008-02-11T15:27:32Z")

</div>

On 2/11/08, Muhammad I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![iqbalhyd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d78d45/32.png) [@iqbalhyd](https://www.ruby-forum.com/u/iqbalhyd)\
**Post date:** [February 11, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758/3 "2008-02-11T20:04:58Z")

</div>

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](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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

–  
Ishaq  
[http://blogs.kahaf.com/ishaq](http://blogs.kahaf.com/ishaq)

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