title: Posting multipart form data with Ruby
body: <p>I'm building a rails app that interacts with a 3rd party API</p>
  
  <p>When a user uploads a file to rails, it should be forwarded on to the 3rd party site via an HTTP POST. </p>
  
  <p>In some cases, the upload can be several hundred MBs.</p>
  
  <p>At the moment, I've just been re-posting to the API using Net::HTTP and accessing the multipart form object like so</p>
  
  <p>@tempfile = params[:video][:file_upload].tempfile</p>
  
  <p>This is hella slow though and feels kinda dirty.</p>
  
  <p>Is there a better way to do this?</p>