Questions tagged [carrierwave]

A modern ruby gem for file uploads in Rails and other frameworks, similar to paperclip and attachment_fu

This tag should be for questions that involve the carrierwave gem.

The github repository for carrierwave https://github.com/jnicklas/carrierwave has all of the important information about the gem.

An excellent Railscast on carrierwave: http://railscasts.com/episodes/253-carrierwave-file-uploads.

The ASCIICasts version is at http://asciicasts.com/episodes/253-carrierwave-file-uploads

A GoRails screencast is at https://gorails.com/episodes/file-uploading-with-carrierwave.

3028 questions
1
vote
3 answers

how to retrieve image link from S3 bucket

I am able to upload Image to s3 bucket. I then retrieve the JSON object containing image link. this is the URL pointing to the bucket. url: "https://s3.amazonaws.com/bucket-name/uploads/recepie/image/21/2013-12-13_23.25.58.jpg" When i press it I get…
JY2k
  • 2,879
  • 1
  • 31
  • 60
1
vote
1 answer

Why is my bucket empty in Amazon S3, when using Carrierwave-aws gem, Rails4 and Heroku

I am trying to upload images to Amazon S3, but they stay on Heroku only. What should I put in config.asset_host in the carrierwave.rb, when using the Carrierwave-aws gem? This is my uploaders -> pictureuploader.rb class PictureUploader <…
userden
  • 1,615
  • 6
  • 26
  • 50
1
vote
0 answers

Rails 4, Carrierwave, Jcrop, image upload and resizing

UPDATE I moved the crop code from the uploader directly to the Notebook Model so that it gets called at least. Now, the image is getting processed. It's getting cropped in fact, to the correct width and height dimensions, but the x and y offsets are…
kaustubhb
  • 399
  • 1
  • 5
  • 19
1
vote
1 answer

Carrierwave and delayed_job uploading single file two times in the upload directory

I trying to upload large file (upto 2 gb) from my sample app. I am using carrierwave gem for file uploading While uploading files it is taking too much time and also it is allocating server process while uploading. After searching I get this link.…
user2622247
  • 1,059
  • 2
  • 15
  • 26
1
vote
1 answer

How to integrate Carrierwave-Dropox gem with Rails 4

I'm using this gem carrierwave-dropbox and I have an error while trying to upload my file. I have an error "Forbidden". Do I need to place the Carrierwave configuration in application.rb or in a separate file in /config/ ? here is my…
Papouche Guinslyzinho
  • 5,277
  • 14
  • 58
  • 101
1
vote
2 answers

How to add a title when you don't know what you're asking for?

I really don't know how to ask for what I'm asking for ... I'd google if I knew what I was looking for! So, I have a set of carrierwave versions of images names image00, image01, image02 etc up to image25 stored as: @photo.main.image00,…
Darren
  • 1,682
  • 1
  • 15
  • 33
1
vote
1 answer

wrong number of arguments for carrierwave for actionDispatch

I have an error for my Paintings_controller wrong number of arguments (2 for 0). def create @painting = Painting.new(painting_params) I'm using Carrierwave I have an other controller (Attachements_controller) that uses Carrierwave but it doesn't…
Papouche Guinslyzinho
  • 5,277
  • 14
  • 58
  • 101
1
vote
0 answers

Browse button is not working for carrierwave and uplodify

Hi I am uploading the video from my rails app. For this I am using carrierwave gem. I am referring this tutorial for it. But when I tried to upload the video from my computer by using Browse button it is not allowing me to browse. When I checked in…
1
vote
1 answer

how to Make file uploaded to s3 private

I have a rails app in which employers can upload files for a freelancer to work on. i am using amazon s3 to store the files. The problem is that amazon s3 assigns the file a url that if some has has, they can access the file. Employers will often…
1
vote
1 answer

Stubbing Carrierwave in RSpec to speed up tests

I'm saving an object to database in RSpec. This object has a Carrierwave field with its presence validation. I'm using fixture_file_upload for that field in a factory and it's very slow. I would like to stub Carrierwave file handling completely, but…
leemour
  • 11,414
  • 7
  • 36
  • 43
1
vote
1 answer

Protect images uploaded with Carrierwave

I am building a site where I want to protect certain images from download. Only authorized users would be able to download them. As I upload images with Carrierwave, they are stored inside public/uploads/image. Users can download them via link: def…
user3339562
  • 1,325
  • 4
  • 18
  • 34
1
vote
1 answer

Carrierwave not deleting versions from S3, only the original file

Well, I'm using carrierwave and generating versions (thumbnails) with it. The storage backend is Amazon S3. class Image < ActiveRecord::Base mount_uploader :attachment, ImageUploader end When I call Image.find(1).destroy, the original file is…
Luccas
  • 4,078
  • 6
  • 42
  • 72
1
vote
1 answer

Carrierwave store original file after creating the version

I have ImageUploader class and i want to save my original image with original size of the image after saving the particular version. Help me to solve this Uploader class ImageUploader < IconBase process :resize_to_fill => [490,68] version :normal…
Mano
  • 979
  • 1
  • 18
  • 36
1
vote
1 answer

Accessing attachment file for meta-information

A rails3 application with Carrierwave and MiniMagick is loading files. However in an attempt to get meta-information out it is hitting Errno::ENOENT The helper method def image @document = Document.find(params[:id]) image =…
Jerome
  • 5,583
  • 3
  • 33
  • 76
1
vote
2 answers

Rails convert Paperclip directory structure to Carrierwave

I was using the Paperclip gem: https://github.com/thoughtbot/paperclip I'm now using Carrierwave: https://github.com/carrierwaveuploader/carrierwave My production website is currently using Paperclip. I'm going to be updating the production website…
Brian
  • 5,951
  • 14
  • 53
  • 77