Questions tagged [paperclip]

Paperclip is a library for the Ruby on Rails framework which makes dealing with file attachments easier. In addition to dealing with standalone files, the library provides convenience methods for creating image thumbnails. Paperclip is now deprecated - the authors recommend using ActiveStorage (they have provided a migration guide)

Paperclip is now deprecated. The library authors recommend switching to ActiveStorage. They have provided a migration guide as well.

Paperclip is intended as an easy file attachment library for ActiveRecord. The intent behind it was to keep setup as easy as possible and to treat files as much like other attributes as possible.

For more information:

4288 questions
1
vote
0 answers

Could not run the `identify` command. Please install ImageMagick

I am using Paperclip and getting this error on the deployed site, not on my local server. And that's why it is becoming more difficult for me to get out of this. A Paperclip::Errors::CommandNotFoundError occurred in images#update: enter code…
1
vote
2 answers

Rails migrations complains about "add_attachment"

This is not a duplicate of: Rails migration complains about undefined method `attachment' using paperclip So we used paperclip and have now switched to activestorage but some of our old migrations are using add_attachment from paperclip which is…
isethi
  • 661
  • 1
  • 10
  • 22
1
vote
1 answer

Rails 3 and Paperclip problem - How to save the uploaded file(s) to the filesystem?

I followed this tutorial trying to integrate Paperclip into my Rails 3 application. However, my case looks a bit different from what is described in this tutorial. In my case, User models are already exist in the database, and I want to upload…
1
vote
2 answers

Paperclip 2.3.11 throws CurrentBucketNotSpecified error for `expiring_url`

My setup: 1) I have added a CNAME on my domain to point to S3. assets.foo.com -> s3.amazonaws.com 2) I have a bucket called assets.foo.com on S3 3) Model code: has_attached_file :report, :storage => :s3, :s3_credentials => { …
Harish Shetty
  • 64,083
  • 21
  • 152
  • 198
1
vote
2 answers

Rails: Paperclip with multiple placeholder images?

I've been trying to experiment with having avatars for users in my app, and I've set this up where a user can upload an image using Paperclip. Paperclip has a nice default functionality where you can define a placeholder image when the user has not…
Andrew
  • 42,517
  • 51
  • 181
  • 281
1
vote
1 answer

Rails 3 CKEDITOR: Paperclip Command Not found

When using CKEditor + Paperclip on rails 3 I get this error message when uploading an image via the wysiwyg editor: Started POST "/ckeditor/pictures?CKEditor=question%5Banswers_attributes%5D%5B0%5D_body_editor&CKEditorFuncNum=2&langCode=en" for…
Emil Hajric
  • 720
  • 1
  • 9
  • 25
1
vote
2 answers

paperclip image broken in rails 3.1rc4

I am using rails 3.1rc4 with paperclip and i cannot upload any image file with. I keep getting this error Image D:/Users/MOBILE/AppData/Local/Temp/stream20110612-3872-y7hmme-0.jpg is not recognized by the 'identify' command. I have imagemagic…
Uchenna
  • 4,059
  • 6
  • 40
  • 73
1
vote
2 answers

Rails 3 app + paperclip gem + production mode = download of empty files

I've installed the paperclip gem for a Rails 3 application. Everything works fine in development mode. However, when running in production mode, if I upload a file and then try to download it again, it downloads a file with the correct name and…
robertwbradford
  • 6,181
  • 9
  • 36
  • 61
1
vote
3 answers

How to update avatar/photo of a model directly?

This is rails 3.0.x. I was just wondering how to update an attribute of a model's photo/avatar directly without prompting the user to upload from his/her system? I am using Paperclip to attach a photo to a model; It has the extension so that a user…
1
vote
0 answers

Solidus - cannot upload or view images (ImageMagick is installed)

I'm just starting with Solidus, though I do know my way around Rails. I've created a Solidus project on my Mac, and I installed all the required gems as well as ImageMagick through Homebrew. Both identify and magick work as terminal commands as my…
Michael
  • 139
  • 1
  • 13
1
vote
1 answer

How can I resolve AWS::S3::Errors:: Access Denied?

Hi I've followed the link below to configure paperclip with AWS S3 but I keep getting a "AWS::S3::ERRORS::AccessDenied (Access Denied):" from the heroku logs. If I remove my block public access settings, I am able to upload an image to my S3 folder…
1
vote
0 answers

Paperclip + Valums ajax file upload plugin for Rails 2.0.2 and Ruby 1.8.7 Config

I am trying to implement ajax file upload using Valums file uploader plugin( https://github.com/valums/file-uploader ), paperclip is doing the image processing for me and helping me in cropping it. I know many you out there would wonder why I am…
boddhisattva
  • 6,908
  • 11
  • 48
  • 72
1
vote
1 answer

Unable to find the image path via file system using the paperclip plugin through the get method

with great difficulty , I guess I have finally been able to find the appropriate git commit of paperclip which would suit my project's config which is Ruby 1.8.7 and rails 2.0.2. I am trying to implement a POC before I integrate paperclip in my…
boddhisattva
  • 6,908
  • 11
  • 48
  • 72
1
vote
1 answer

Paperclip is failing on certain images but continuing to assign the image to a model

my app integrates with FB. When the user has no image, FB returns: https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v1/yp/r/yDnr5YfbJCH.gif While that looks like a normal gif, it breaks paperclip: [paperclip] identify -format %wx%h…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
1
vote
0 answers

Renaming files in Rails model with multiple Paperclip attachments

I have a Rails model that has 4 Paperclip attachment types (top_graphic, intro_graphic, bg_audio, and thumbnail), each of which needs to have its file renamed according to different logic upon upload. How can I check which of the 4 attachments is…
modulaaron
  • 2,856
  • 3
  • 24
  • 28
1 2 3
99
100