I\'m using paperclip to manage uploads, backed onto S3 via Fog. It works well.
I\'m trying to take attachments out of emails and save them via paperclip (using the same
If you already have the UploadedFile, you can just set the virtual attribute Paperclip gives you to that.
UploadedFile
So, if you had a params[:file], and a model with has_attached_file :file, you should be able to just do @obj.file = params[:file]; @obj.save.
params[:file]
has_attached_file :file
@obj.file = params[:file]; @obj.save