paperclip Questions
4
Solved
I'm working on a project that needs to accept file uploads. After the file is uploaded, I'm doing some processing - extracting information from the file. I eventually plan to run this in a backgrou...
Schlimazel asked 13/11, 2013 at 17:31
1
Solved
I have some different styles(sizes), so I want to echo all of them near the text editor for user to choose one and use in the text.
To do this, I need to get all defined styles in model. How can ...
Redware asked 8/3, 2016 at 13:47
11
Solved
I have been banging my head against this for several days. Recently, my image uploader has stopped working properly. I have investigated several possibilities, but have none of the suggested soluti...
Covenant asked 1/4, 2013 at 13:57
2
I have a record model and controller:
require 'open-uri'
class Record < ActiveRecord::Base
has_attached_file :record,
:s3_protocol => :https,
:url => ':s3_domain_url',
:path => '/...
Rexer asked 18/9, 2015 at 10:31
1
Solved
What should my IAM policy look like in order to allow user my-user to access an Amazon S3 bucket called my-bucket?
Currently, I have the following policy assigned to my-user:
{
"Version": "2012-...
Finance asked 10/2, 2016 at 21:53
1
Solved
In my app I already have paperclip for upload images, but requirement changed in order to accept both images and videos. The images are already defined in a model with a belongs_to relationship, ca...
Flux asked 31/1, 2016 at 17:16
3
Paperclip doc about url options:
You can choose to have the bucket's name placed domain-style (bucket.s3.amazonaws.com) or path-style (s3.amazonaws.com/bucket).
How would look like the setup t...
Geminius asked 19/6, 2012 at 5:16
8
Solved
I am using Paperclip and S3 for image uploads and am trying to stub out calls to S3 from my test suite. I found the thoughtbot post which mentions doing
a.cover { a.paperclip_fixture('album', 'c...
Teeter asked 9/2, 2011 at 5:20
3
I wanted to run the callback after_post_process but it doesn't seem to work in Rails 3.0.1 using Paperclip 2.3.8. It gives an error:
undefined method `_post_process_callbacks' for #<Class:0x102...
Kinghood asked 24/12, 2010 at 20:45
1
I'd like to allow my application to permit .vtt files on upload. Right now it was only accepting .txt files, but I'd like to add .vtt capability for captions.
I've tried this *with no luck:
vali...
Juta asked 18/1, 2016 at 19:36
3
Solved
By Default: the paperclip gem stores all attachments within the public directory.
I did not want to store the attachments within the public directory for security reasons, so I saved them within a...
Rede asked 11/1, 2016 at 1:29
2
Solved
I have just set up file uploads to Amazon S3 using Rails 3 and Paperclip. All this works amazingly well and is up and running. There is just one small detail that I would like to sort out. At the m...
Diaphysis asked 25/9, 2010 at 22:59
4
Solved
I've recently encountered a problem where a user uploads an image and somewhere along the lines, paperclip is flipping it upside down.
The image in question can be seen here http://photoramblr.com...
Diorama asked 4/3, 2012 at 20:46
1
Solved
Basically I have an Image model which polymorphically belongs to imageable which are by far List and Item. Since an image will have its own attribute and relationship, I don't want to treat images ...
Marcelo asked 18/12, 2015 at 18:37
2
I have watermarks, galleries, and photos models.
Gallery belongs_to Watermark
Photo belongs_to Gallery
class Photo < ActiveRecord::Base
before_save :save_dimensions, :set_orientation
belongs...
Encomiast asked 20/6, 2011 at 17:2
1
Solved
So in my model I have different sizes for my avatar:
has_attached_file :avatar,
:styles => {
:thumb => "60x60>",
:small => "80x80>",
:medium => "140x140>",
:large => "...
Schmaltzy asked 15/9, 2012 at 13:5
1
Solved
Basically my :create action test keeps failing, even though it works in the app. I commented out the paperclip validations in my controller below and it worked.
has_attached_file :image, styles:...
Metanephros asked 10/6, 2015 at 6:49
0
I used gem "paperclip" for upload images and gem "paperclip-storage-ftp" for store images on my own ftp server. It worked fine for a while, but now I am getting random errors, when I upload photos....
Chiles asked 5/11, 2015 at 9:30
1
Solved
I am able to upload videos locally. The videos are processed using paperclip and all the meta data is saved correctly, as well. When I tried to upload a video using our remote server, I received th...
Jehu asked 24/7, 2015 at 14:59
1
Solved
I am trying to upload profile pictures to Google Cloud using Paperclip and Fog gems. so far this what I have
In my Gemfile
gem "paperclip", git: "git://github.com/thoughtbot/paperclip.git"
gem 'f...
Jacquesjacquet asked 13/10, 2015 at 19:58
2
We're using Paperclip with the aws-sdk gem to store and display images in our Rails app:
class User < ActiveRecord::Base
has_attached_file :image,
storage: :s3,
s3_credentials: 'config/s3.ym...
Beane asked 20/4, 2015 at 19:7
2
Solved
Let's says I have the following entry in my seeds.rb file :
Image.create(:id => 52, :asset_file_name => "somefile.jpg", :asset_file_size => 101668, :asset_content_type => "image/jpeg",...
Complication asked 24/2, 2013 at 15:15
3
Solved
I am using rails_admin and paperclip but installing rails_admin with a model having paperclip attributes has_attached_file throws an error
undefined method `attachment_definitions'
I am using Ra...
Expiate asked 8/7, 2013 at 9:59
1
How can i create fixtures file for test paperclip upload? I search fews result in google but always use with FactoryGirl.
I tried but not work:
img:
image: <%= fixture_file_upload(Rails.root....
Jerid asked 31/1, 2015 at 13:49
2
I would like to upload multiple pictures to my Rails 3 application. I am currently using Paperclip to upload a picture, and I have some post processing operations assigned to the model Photo....
Shellans asked 16/2, 2011 at 15:35
© 2022 - 2024 — McMap. All rights reserved.