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)

Filter by
Sorted by
Tagged with
0votes
1answer
18views

Failed on Migration using Paperclip on Rails

I am trying to install Paperclip using Rails 6.1 I ran this command : rails g paperclip Model image And i got this migration : class AddAttachmentImageToExercises < ActiveRecord::Migration def ...
user avatar
  • 25
1vote
0answers
20views

File Attachment Management for Rails and Oracle Cloud - OCI Object storage

Looking for a RAILS solution for OCI Object Storage, we currently are using paperclip on AWS with S3. Paperclip is depreciated and Active storage has no documented solution for OCI Object Storage. Any ...
user avatar
0votes
0answers
14views

Any one uses the last version of Paperclip 6 to upload images in Rails 6 applications

I asked a question about a problem that happened to me last week in the configuration process of the gem I still didn't figure out the solution , I want to know If there are any developers who uses ...
user avatar
  • 11
0votes
0answers
8views

how to make a PowerPoint presentation from a research paper:?

how to make a PowerPoint presentation from a research paper:? Introduction (1 slide) Research Questions/Hypotheses (1 slide) Literature Review/Theory (1 slide) Methods & Data Collection (1 slide) ...
user avatar
1vote
1answer
108views

Paperclip gem Rails [6.1] : migration error wrong number of arguments (given 3, expected 2)

Im trying to install paperclip gem on my rails app and I had 3 problems in succession and I would like to point out to them, it may be related to the last problem : 1- I coulden't install the ...
user avatar
  • 11
0votes
1answer
29views

True Paperclip Replacement (Speficially Structure of the File System)

With Rails 6, I need to replace Paperclip, but I can't find any substitutions that actually easily replicate it. Specifically, the file structure paperclip used: :model/:attachmant_field/000/000/000/:...
user avatar
1vote
1answer
175views

Rails 6, Paperclip, S3, s3_direct_upload @attachment.save not saving after the s3_direct_upload completes

I have re-written an application called FilterTrak from an older version of Rails v4.2 to Rails v6 and I have everything working now except one part of the picture upload. The app uses Paperclip, aws-...
user avatar
0votes
0answers
14views

Ruby 3 migration: new asset_content_type for paperclip file

In our application we had a fixture for rspec as follows: File.new(Rails.root.join('spec', 'fixtures', *filename)) In our Back-end we were downloading the file in production as follows: FileIO.new(...
user avatar
1vote
0answers
99views

LoadError: cannot load such file -- azure

I was updated ruby and rails from 5.2 to 6.0.1 and after that, I was tried to run Rspec then get this error. LoadError: cannot load such file -- azure Also reported on GitHub here is the link: https:...
user avatar
0votes
0answers
10views

Rails Paperclip Progress Bar

All the posts for paperclip gem is old. But I’m currently trying to implement a progress bar on Vue for frontend and Paperclip in the backend. Seems like saving the file to S3 is just simply file.save ...
user avatar
0votes
1answer
41views

S3 save old url, change paperclip config, set new url as old

So here is the thing: currently our files, when user downloads them, have names like 897123uiojdkashdu182uiej.pdf. I need to change that to file-name.pdf. And logically I go and change paperclip.rb ...
user avatar
  • 69
0votes
1answer
63views

No implicit conversion of Nil to String Error with Paperclip

In my app I've created a view which lists all the PDFs in my S3 Bucket, and for this I am using the Paperclip Gem. However I am now receiving this error in my terminal. Error performing Courts::...
user avatar
1vote
1answer
24views

Rails: Rendering video uploaded by paperclip

I am using Rails 6.1 + Ruby 3 and trying to allow users to upload videos and then watch them in app. clip.rb class Clip < ApplicationRecord belongs_to :chapter has_attached_file :video, ...
user avatar
0votes
0answers
48views

Rspec for Paperclip + S3

I am using Rails 4 with paperclip + S3. I want to test the image upload from the controller. Is there a way I can stub the paperclip upload from rspec? Profile model has_many :attachments Attachment ...
user avatar
0votes
1answer
71views

Rails Paperclip Error after upgrading ruby from 2.3.1 to 3.0.1

Existing project is in ruby 2.3.1 and upgrading version to 3.0.1 (rails 6.1.4) with related gems. Updated gem to "paperclip" to "kt-paperclip". I am getting following error while ...
user avatar
0votes
0answers
147views

Rails:undefined method `url_for' for #<Aws::S3::Object

ruby:2.6.3 rails:5.2.5 I use those gems ↓ gem 'devise' gem 'paperclip' gem 'aws-sdk' I can't show the image because of an error. def authenticated_image_url(style) profile_img.s3_object(style)...
user avatar
  • 33
0votes
1answer
37views

Is there a way to examine the URL used by the paperclip gem?

I am using the kreeti/kt-paperclip gem with rails 4.2 and MinIO. I believe I have setup the model correctly, but I am getting "Aws::S3::Errors::InvalidAccessKeyId: The AWS Access Key Id you ...
user avatar
0votes
1answer
209views

rails: migration issue with paperclip gem

I'm trying to migrate the rails app but it fail. the issue in the paperclip gem migration. I tried to use both way for migration but both of them not work properly: class AddAttachmentImageToItems <...
user avatar
  • 262
0votes
0answers
46views

undefined method `to_f' for... Date, Ruby on Rails, Paperclip - not capturing image_url, or rendering image as a result

I have been trying to add a blog feature to a website, and using the existing codebase as a reference. I have had a lot of trouble adding and rendering an image with each article, using the Paperclip/...
user avatar
1vote
0answers
113views

delayed_paperclip with sidekiq returning NoMethodError: undefined method `fetch' for nil:NilClass

I am using delayed_paperclip and I have tried it with the default ActiveJob and it works well. However, it runs synchronously so it will wait for the job to finish before response so I wanted to move ...
user avatar
  • 1,128
0votes
0answers
71views

Paperclip 4.2 ruby 2.7.2 warning: URI.escape is obsolete

how i didn't try to get url or path i get error rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/paperclip-4.2.4/lib/paperclip/url_generator.rb:64: warning: URI.escape is obsolete question.assets.each{ |...
user avatar
0votes
0answers
49views

I want to migrate paperclip gem to active_storage Ruby on Rails 7, Part2

I follow paperclip2active_storage. My database.yml defines a sqlite DB for environment development that is no longer needed, b/c acitve_storage uses Disk storage as follows: database.yml production: ...
user avatar
  • 380
0votes
1answer
110views

I want to migrate paperclip gem to active_storage Ruby on Rails 7

...like this: paperclip2active_storage Update be sure to watch the linked video presentation as the text document does not present all the quirks! so I installed and configured rails 7 and gem '...
user avatar
  • 380
0votes
0answers
122views

Rails - Migrating from Paperclip to Active Storage

As the title suggests, I am trying to migrate a Rails project from Paperclip to Active Storage. I was not the developer who implemented the Paperclips solution and have little knowledge of how it ...
user avatar
7votes
2answers
1kviews

warning: URI.escape is obsolete when using paperclip in ruby 2.7.2

ruby - 2.7.2 rails - 6.0 paperclip - 6.1.0 I am getting following warning in my console, while using paperclip gem with ruby 2.7.2 /Users/***/.rvm/gems/ruby-2.7.2/gems/paperclip-6.1.0/lib/...
user avatar
  • 661
2votes
2answers
495views

Can no longer bundle install all of my applications on Rails that require Paperclip due to MimeMagic gem no longer existing?

I had a program that worked a few weeks ago and I wiped it out and had to re-install my ruby and rails enviornment and now I can not bundle install the same program because Paperclip requires ...
user avatar
-1votes
1answer
56views

error in module paperclip (python) module not found copy() in paperclip? [duplicate]

File "C:\Users\Personal\PycharmProjects\pythonTutes\paperclip.py", line 1, in <module> import paperclip File "C:\Users\Personal\PycharmProjects\pythonTutes\paperclip.py"...
user avatar
0votes
0answers
17views

Save FFMPEG mp4 output to tempfile using Paperclip

I am trying to save the mp4 output result to a tempfile when ffmpeg concatenates two mp4 input files using the Paperclip run command. After I run the command the tempfile is always empty with text/...
user avatar
  • 45
0votes
2answers
371views

when I use paperclip migration error occur

run this command => rails generate paperclip photo image create migration file class AddAttachmentImageToPhotos < ActiveRecord::Migration[5.1] def self.up change_table :photos do |t| ...
user avatar
0votes
1answer
253views

Rails: AWS S3 Access denied error with Paperclip upload

I am getting Aws::S3::Errors::AccessDenied Access Denied whenever I tries to upload an image using paperclip and aws-sdk-s3. I have almost tried all the solution available on Internet. I have tried ...
user avatar
0votes
1answer
24views

adding image with paperclip failed NoHandlerError

Using Paperclip 6.1.0 in rails 6 I got this error: Paperclip::AdapterRegistry::NoHandlerError (No handler found for "logo.jpg"): In my model I have: class Movie < ApplicationRecord ...
user avatar
0votes
0answers
195views

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::...
user avatar
  • 332
0votes
0answers
274views

How to change paperclip attachment path?

So, i've got a file which is processed after upload in a certain way. After that processing it should be moved to another folder. I did it with help of FileUtils.mv (since i didn't find any ...
user avatar
  • 25
0votes
0answers
187views

Paperclip upload / update: Getting can't modify frozen String: "" error on Rails 6

On Rails 6.0.3.3 and ruby 2.7.0, using kt-paperclip (~> 6.3) This is the content of my View: <%= form_for brand, url: brand_path, html: { multipart: true } do |f| %> <%= f.file_field :...
user avatar
  • 236
1vote
2answers
243views

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 ...
user avatar
  • 584
3votes
1answer
247views

How can I avoid accepting broken images in ActiveStorage?

I am currently migrating a Rails application (that drives screenshots.debian.net) from Paperclip to ActiveStorage. It allows users to upload PNG images that are then shown to all users. TL;DR: The ...
user avatar
-1votes
1answer
204views

TypeError: Illegal invocation at forEach when creating attachments

trying to create an attachment to the associating model, but have an error, do not know how to debug it firefox says 'forEach' called on an object that does not implement interface FormData; chrome - ...
user avatar
  • 39
-2votes
1answer
324views

Paperclip uploads for docx file is being downloaded as zip files?

I have checked the Mimetype of the docx file and it shows: 'application/octet-stream' But checking it without any content in it shows application/vnd.openxmlformats-officedocument.wordprocessingml....
user avatar
0votes
2answers
351views

Undefined method `image' in Shrine

I try to add Shrine gem to an existing project that uses Paperclip. I added a Shrine image to a new model (just for a check). So I created model Country with this db table: create_table "...
user avatar
  • 41
0votes
1answer
34views

Getting undefined method `builder_photo' for nil:NilClass error

I have a Builder profile image which is stored in Database table Builders. I want to show the current_user image that is builder profile image in the navigation bar. Sp I used. <%= image_tag(@...
user avatar
0votes
0answers
30views

Paperclip error while trying to upload a file (windows)

I am new to rails and I am trying to upload a file using the Paperclip Gem but I am facing the following error. (Note I am using windows so it might be a problem with some file commands). Note I did ...
user avatar
1vote
0answers
146views

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 ...
user avatar
  • 109
0votes
1answer
199views

Imagemagic: Resizing image increase image size

I have an image And I need to create thumbnail I do it with next command convert "source.png" -auto-orient -resize "350x350>" "destination.png" But resized image has larger size then original ...
user avatar
0votes
2answers
387views

how should I configure "block public access" on Amazon S3?

I am using paper clip and ruby on rails to upload images from my website to AWS S3 and my webapp is hosted on heroku. Should I checking block public access under bucket settings? Currently I have ...
user avatar
0votes
1answer
346views

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 ...
user avatar
0votes
0answers
29views

record column parameters all nil in database after adding record using admin panel

When adding a new record to a ruby on rails app via the admin panel everything seems fine. However in development, the record is not storing to the database correctly. I'm assuming this will happen in ...
user avatar
  • 41
0votes
0answers
218views

Rails 5 Active Storage Paperclip-style Thumbnail Form Preview

With Paperclip, in a Rails 3 form, you could generate a thumbnail preview of an uploaded photo like so: form do |f| f.input :photo, :required => false, :as => :file, :hint => f.template....
user avatar
  • 1,376
0votes
1answer
137views

Rails Paperclip delete local attachment if upload successful

I have the code below to save my local file to AWS S3. It uploads my file to S3 correctly, but then my local file is not deleted. Now I've filled disk space completely. How can I ask paperclip to ...
user avatar
  • 2,642
2votes
0answers
566views

inode/x-empty content-type after upload file from iOS and GoogleDrive/iCloud

I have a problem with upload files from iOS devices and cloud storage like Google Drive or iCloud into my Ruby on Rails application. When file is uploaded from local storage or android and desktop ...
user avatar
0votes
1answer
118views

Add multiple images by paperclip rails

This is my code in draft.rb .It is uploading single image at a time. I want to do change so that it adds multiple images using paperclip.I am new to rails.Can someone help me please. class Draft <...
user avatar

15 30 50 per page
1
2 3 4 5
86