title: Upload ActionDispatch::Http::UploadedFile To Amazon S3
body: <p>How can I upload a <code>ActionDispatch::Http::UploadedFile</code> to Amazon S3?</p>
  
  <pre><code>@file_data = params[:upload][:file]
  s3 = AWS::S3.new
  obj = s3.buckets['WeMake'].objects.create("video", file)
  </code></pre>
  
  <p>I then get this error: ArgumentError (:data must be provided as a String, Pathname, File, or an object that responds to #read and #eof?):</p>