Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiple File Uploads Error using JQuery-File-Upload and Paperclip
    text
    copied!<p>Following a <a href="https://github.com/fedesoria/fily/tree/no-asset-pipeline" rel="nofollow">tutorial</a> on multiple file uploads in Rails using <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">jQuery-File-Upload</a> there seems to be a problem as soon as the attribute <em>:multiple => true</em> is added to the file_field e.g.</p> <pre><code>&lt;%= f.file_field :path, :multiple =&gt; true %&gt; </code></pre> <p>The following error occurs:</p> <pre><code>Started POST "/pictures" for 127.0.0.1 at 2012-06-20 18:50:51 +0100 Processing by PicturesController#create as JSON Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"hcMORNvY1Rx/tbHv8wB+hLKzS92Nez5qHdgHXfcq+Nc=", "picture"=&gt;{"path"=&gt;[#&lt;ActionDispatch::Http::UploadedFile:0x007fa183ba1a18 @original_filename="001.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"picture[path][]\"; filename=\"001.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#&lt;File:/var/folders/xq/dq4fkqnx0m36htfgdj2lxlb00000gn/T/RackMultipart20120620-60459-yeso39&gt;&gt;]}} Completed 500 Internal Server Error in 1ms Paperclip::AdapterRegistry::NoHandlerError (No handler found for [#&lt;ActionDispatch::Http::UploadedFile:0x007fa183ba1a18 @original_filename="001.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"picture[path][]\"; filename=\"001.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#&lt;File:/var/folders/xq/dq4fkqnx0m36htfgdj2lxlb00000gn/T/RackMultipart20120620-60459-yeso39&gt;&gt;]): app/controllers/pictures_controller.rb:14:in `create' </code></pre> <p>Has anyone come across a solution to this problem?</p> <p>Rails: 3.2.5, Paperclip: 3.1.2, Browser: Chrome Version 19.0.1084.56, OS: Mac OS X 10.7.4</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload