# HTML-like multipart/form-data POST file upload for Net::HTTP (rfc1867)

**URL:** <https://www.ruby-forum.com/t/html-like-multipart-form-data-post-file-upload-for-net-http-rfc1867/145203>\
**Category:** Ruby\
**Created:** [August 6, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/html-like-multipart-form-data-post-file-upload-for-net-http-rfc1867/145203 "2008-08-06T20:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leoboiko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@leoboiko](https://www.ruby-forum.com/u/leoboiko)\
**Post date:** [August 6, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/html-like-multipart-form-data-post-file-upload-for-net-http-rfc1867/145203/1 "2008-08-06T20:16:00Z")

</div>

Hi people. I think this has been solved a hundred times in lots of  
different places, but never working together with Net::HTTP, and never  
as a separate general library (if I’m wrong —sorry, library authors, I  
didn’t find yours!). So I created “multipart”: a ruby gem that  
extends Net::HTTP::Post with a method to format file upload parameters  
as multipart/form-data, per rfc1867. It supports multiple file  
parameters per request, and also multiple files per parameter  
(multipart/mixed). All you gotta do is gem install multipart and read  
the rdocs.

It’s in beta and by that I mean UNTESTED. Before doing anything  
serious, help me debug it 😉
