Excuse me I am using paperclip. so when i attachment a file diferent to image (when i don´t upload jpeg,gif or png example zip) show this error:
Update: I\'ve switched to CarrierWave (finally got it to work), so although I still appreciate answers to this question I won\'t be able to try if they actually work since I\'ve completely removed DM-
I have a problem with the validation of the content type by the Paperclip plug-in: image.rb (relevant extract)
I\'m attempting to implement Paperclip in my Rails3 app and using Emerson Lackey\'s railscast (http://www.emersonlackey.com/article/paperclip-with-rails-3) as a model as its very similar to what 开发者
I installed ImageMagick and the paperclip gem on my Windows machine. The thing is that :styles => {...} is not working, so I assumed that paperclip is having some problem with ImageMagick.
I am using Paperclip for uploading the Profile image in my application (rails) My User model is having a
I have an Attachment model, which is using Paperclip to handle uploaded files. The file can be anything an image, a txt, doc, pdf, rar, zip, tar etc.
in my project i have form in that there is file field to upload file and I am using paperclip gem for that and add only validation \'validates_attachment_content_type\' but when i submit a form withou
In my model, that has_at开发者_运维技巧tached_file, I have the following code: before_post_process :jpeg_optim_compression
I have installed paperclip on my r开发者_开发技巧ails app (deployed on heroku). On my localhost it worked fine, but on heroku it didnt work.