title: Rails Paperclip & Multiple File Uploads
body: <p>I am looking for a solution to give the user the ability to upload multiple images through one file_field. I have looked in to options such a Jquery File Upload and Uploadify but have yet to come across good examples with a working solution. </p>
  
  <p>I already have multiple images setup,</p>
  
  <pre><code> has_attached_file :asset,
                     :styles =&gt; { :large =&gt; "640x480", :medium =&gt; "300x300", :thumb =&gt; "100x100" },
                     :storage =&gt; :s3,
                     :s3_credentials =&gt; "#{Rails.root}/config/s3.yml",
                     :path =&gt; "/:contributor_id/:listing_name/:filename"
  </code></pre>
  
  <p>Right now I am displaying 5 individual file_fields</p>
  
  <pre><code>def new
    @listing = Listing.new
    5.times {@listing.assets.build }
  
    respond_to do |format|
      format.html # new.html.erb
      format.json { render json: @listing }
    end
  end
  </code></pre>
  
  <p>I would like to have </p>
  
  <pre><code>&lt;%= f.file_field :asset, :multiple =&gt; true %&gt;
  </code></pre>
  
  <p>That allows the user to select multiple files in their file browser. But how can I process these with a nested model? And get them to upload.</p>