I have an \"item\", which goes through a multi-page creation process. Images are uploaded at step five, and I keep track of the steps by using the attribute \"complete\". When validating whether an im
i started using nginx upload module (which creates upload files like /tmp/000121545) but i need paperclip to use original filename while saving files (like /public/avatars/LuckyLuke.jpg)
I am able to \'POST\' to a Rails application (with Paperclip) using XML instead of the standard web form (trying to do it from another Ruby script).However, I would like to include a binary file.
I think I have a bit of a chicken and egg problem.I would like to set the content_type of a file uploaded via Paperclip.The problem is that the default content_type is only based on extension, but I\'
I\'m using Papeclip(2.3.1.1) with Rails(2.3.5). In my view I write so: <%= link_to image_tag(p.attachment.url(:small)), p.attachment.url(:original) %>,
I开发者_JAVA技巧 have a rails application that has multiple models with paperclip attachments that are all uploaded to S3.This app also has a large test suite that is run quite often. The downside wit
I\'m currently learning rails by creating a simple project management app. I\'ve gotten to the point where I would like to be allow a user upload multiple files - pdfs, docs, xls etc. The user only ne
class User < ActiveRecord::Base has_attached_file :photo, :styles => { :square => \"100%\", :large => \"100%\" },
Is there anyway to throw a validation error if a user tries to upload the same photo twice to a Rails app using Paperclip?Paperclip doesn\'t seem to offer this functionality...
I have a paperclip attachment in one开发者_运维问答 model, but I`m not saving the file in /public, but /assets. And when the user what to open the file I use the send_data() function, which makes the