Note that there are some explanatory texts on larger screens.

plurals
  1. PORails paperclip img upload error: "no file chosen" with rmagick installed
    primarykey
    data
    text
    <p>I can't get to upload images using paperclip. Whenever I choose the file and submit the page reloads and says "no file chosen".</p> <p>My code trip.rb</p> <pre><code> class Trip &lt; ActiveRecord::Base has_many :images accepts_nested_attributes_for :images, :allow_destroy =&gt; true attr_accessible :messages_attributes end </code></pre> <p>The form</p> <pre><code> &lt;%= f.fields_for :images do |image_fields| %&gt; &lt;% if image_fields.object.new_record? %&gt; &lt;%= image_fields.file_field :image %&gt; &lt;% end %&gt; &lt;% end %&gt; </code></pre> <p>Image.rb</p> <pre><code> class Image &lt; ActiveRecord::Base belongs_to :trips has_attached_file :image, :styles =&gt; { :large =&gt; "640x480", :medium =&gt; "300x300&gt;", :thumb =&gt; "100x100" }, :storage =&gt; :s3, :bucket =&gt; 'Thrill', :s3_credentials =&gt; { :access_key_id =&gt; 'XXXXXXXXXXXX', :secret_access_key =&gt; 'xxxxxxxxxxxxxxxxxxxxx' } end </code></pre> <p>And I also have installed <strong>gem 'rmagick'</strong> in my gem file, which seems to be the solution for many, with similar problem. But not really in my case. </p> <p>Any ideas what could be wrong ? Thanks!</p> <p><strong>Update</strong></p> <p>via rails console</p> <p><code>Image.create :image =&gt; File.open('c:/sites/thrillb/app/assets/images/srf.jpg')</code></p> <p>Not working as well.</p> <pre><code> identify.exe: unable to open image `AppData/Local/Temp/stream20120826-41544-1no4 vdp.jpg': No such file or directory @ error/blob.c/OpenBlob/2641. identify.exe: unable to open image `AppData/Local/Temp/stream20120826-41544-1no4 vdp.jpg': No such file or directory @ error/blob.c/OpenBlob/2641. identify.exe: unable to open image `AppData/Local/Temp/stream20120826-41544-1no4 vdp.jpg': No such file or directory @ error/blob.c/OpenBlob/2641. =&gt; #&lt;Image id: nil, image_file_name: "srf.jpg", image_content_type: "image/jpeg" , image_file_size: 142825, image_updated_at: "2012-08-26 19:28:19", trip_id: nil , created_at: nil, updated_at: nil, title: nil, location_id: nil&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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