I am new to Paperclip and it all worked pretty fast. I am trying to get the user to only load PNG or JPG, although although I load JPG and my content_type checks JPG, it still says that it is not valid.
I tried to remove the PNG content_type, but to no avail.
I tried using has_attached_file, but it seems to be ignoring: content_type and stuff. Because if I download JPG only with :content_type => "image/png"; It doesn’t give an error.
Any suggestions?
validates_attachment :avatar, :styles => {
:medium => "300x300",
:thumb => "100x100"
}, :content_type => {
:content_type => "image/jpg",
:content_type => "image/png"
},
:size => { :in => 0..1.megabytes }
Oh, and while I am; I want my thumb and environment to be fixed. So no scaling, like 100x80, but only 100x100 anyway. How can i do this?