paperclip Questions

3

I have googled/stack overflowed for hours and not found a solution to this problem. I'm wondering if my installation of PaperClip was somehow unsuccessful. I'm trying to validate an image attachmen...
Nomarchy asked 27/7, 2013 at 18:47

1

Solved

I am using paperclip gem to upload a file to the database. When I select the file I want to upload and go to create it, the next page should redirect_to root path. Instead, I get "Method Not Allowe...
Steeve asked 20/8, 2015 at 15:52

5

Solved

I've been using this forever with paperclip and aws-s3: def authenticated_url(style = nil, expires_in = 90.minutes) AWS::S3::S3Object.url_for(attachment.path(style || attachment.default_style), ...
Candis asked 4/2, 2012 at 6:46

2

I'm using Paperclip and S3 for file upload and storage in a Rails 3 app. The uploading of the files is working well, but when trying to attach an uploaded file to an email message with actionmailer...
Galcha asked 18/3, 2013 at 4:31

4

I'm using the ckeditor gem (https://github.com/galetahub/ckeditor), and paperclip gem, and CKEditor works, but I have no option to upload an image when I click the image button, only enter a URL. I...
Weed asked 15/11, 2013 at 21:12

2

Solved

I'm building an image based off of user input -- the background will either be an image or a color, and then a few other images may or may not be composed on top. Checking through the paperclip d...
Samale asked 17/7, 2015 at 0:35

2

Solved

please help solve the problem. using a paperclip I organized upload images. it works. Now I would like to organize a video upload. I changed this model: model: class Video < ActiveRecord::Bas...
Mould asked 23/7, 2015 at 11:29

1

Solved

I'm getting [object Object] on my thumbnails (the background image is the area where you can click on to upload photos... I'm not sure how to load up the normal box similar to the example in http:/...
Dehumanize asked 18/7, 2015 at 22:27

3

Solved

Is there any way to prevent validation messages appearing twice for Paperclip upload validations? Here is my model: has_attached_file :photo, :styles => { :thumb => "215x165" }, :default_ur...
Ferine asked 12/11, 2013 at 15:46

5

Solved

When files are added i want to start the upload process automatically. I called the start function at the end of FilesAdded but it doesn't start the upload. uploader.bind('FilesAdded', function(up...
Religiosity asked 15/11, 2011 at 13:42

3

Solved

I'm creating CSV-upload functionality for a site of mine. I'm looking to upload a file, parse it, and then dispose of it. I know I can upload and save a file using Paperclip, but that seems a bit ...
Lymphosarcoma asked 1/12, 2011 at 23:42

6

Solved

I'm using rails and paperclip to save images, the usual way. When a record with an attachment is destroyed, the attachment also gets deleted from the file system. 99% of the time this is the cor...
Fizgig asked 16/5, 2011 at 7:56

3

Solved

I'm using Paperclip (2.3) to handle image uploads on a Rails 3.0.3 app running on Ubuntu. Paperclip is handling the uploads as advertised BUT the RackMultipart* files that are created in the applic...

2

Having some trouble trying to get this to work in Rails 4 - http://railscasts.com/episodes/182-cropping-images?view=comments As per one of the questions in the comments: using the after_update cal...
Hysterogenic asked 17/11, 2013 at 16:17

10

Solved

I have set up my models to use a polymorphic Image model. This is working fine, however I am wondering if it is possible to change the :styles setting for each model. Found some examples using STI ...
Ross asked 28/10, 2010 at 14:4

3

Solved

In my model: has_attached_file :uploaded_file, :url => "/policy_documents/get/:id", :path => "/public/policy_documents/:id/:basename.:extension" validates_attachment_size :uploaded_f...
Coffee asked 11/1, 2012 at 11:12

1

Hi i need to upload images with dropzone js to my website. i am using dropzonejs rails gem it uploads correctly but after upload it doesn't render js.erb file my js.coffee Dropzone.options.photoD...

5

Solved

I have a rake file, that reads content via HTTP and I want to use Paperclip to store the loaded content on Amazon S3. It works fine when I provide a local file, but I would like to set the content ...
Eachelle asked 3/11, 2010 at 15:55

2

Solved

Trying to get the width and height of the uploaded image while still in the model on the initial save. Any way to do this? Here's the snippet of code I've been testing with from my model. Of cour...
Narrow asked 4/5, 2010 at 19:52

2

When I use formtastic DSL for ActiveAdmin edit form I get the following output: #< #< Class:0x00000006bd1f68>:0x00000006bd1018> <li class="file input optional" id="post...
Barroom asked 27/12, 2014 at 14:3

1

We are trying to optimize our views and on a page where 40 pictures are loaded with the following code : = image_tag(product.pictures.first.data.url(:gallery)) We have a load time of 840ms, if w...

3

Solved

I would like to use jpegoptim or optipng to compress the image uploaded by users via Paperclip. I have a Paperclip model configured as: has_attached_file :image, :styles => {:thumb => '50...
Privilege asked 8/5, 2012 at 8:53

3

I then want to use Paperclip to have photos for each Listing. I added the appropriate code to the listings show.html.erb, the listing.rb model, the listings_controller.rb and the _form.html.erb par...
Tailspin asked 30/3, 2014 at 16:17

2

Solved

So i got successfully working Paperclip and S3 uploading in RoR 3, but it turns out that some images are prompted to download and others can be viewed in the browser. What determines this behaviour...
Monroy asked 10/12, 2012 at 19:49

5

Solved

I'm getting this error when I try to upload using paperclip with my rails blogging app. Not sure what it is referring to when it says "MissingRequiredValidatorError" I thought that by updating post...
Weiss asked 20/2, 2014 at 3:51

© 2022 - 2024 — McMap. All rights reserved.