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
0 answers

Gem with shared models using devise and carrierwave

I have two apps that share several models. I created a gem that contains those models. Minus carrierwave functions and devise methods, it works great (commented them out to test). However when I add them back in I get errors: undefined method…
Matt Ramirez
  • 673
  • 6
  • 19
1
vote
2 answers

rails can't update record carrierwave

my model uses carrierwave class Image < ActiveRecord::Base belongs_to :imageable, :polymorphic => true mount_uploader :image, PropertyUploader end And I can't update manually field that carrierwave does. Here is a console log image =…
Sergei Tsibulchenko
  • 297
  • 1
  • 5
  • 17
1
vote
1 answer

How to store file in amazon which expire in one hour using carrierwave?

I recently implemented file uploading using carrier-wave with Amazon S3 storage. I want to generate, or make available, the S3 URL only for one hour. After that the link should expire. How can I do this using carrier-wave?
ferdy
  • 41
  • 9
1
vote
1 answer

retrieve carrierwave file uploaded to Amazon S3

Using Rails 3.2, carrier wave, and recently switched to store on Amazon S3. My setup and uploads are all working fine. 1. I have image_uploader.rb to upload and store images. Displaying them all works fine 2. I have file_uploader.rb to upload and…
Bart
  • 41
  • 4
1
vote
1 answer

Rails 4 not displaying conditions when uploading images with carrierwave

I am doing a website for a PR agency, and they have multiple clients (called cliente). Each of these clients has an image gallery (called cliente_photos) of their own. I am using carrierwave and active_admin to upload through an admin. In the…
jppag
  • 37
  • 1
  • 8
1
vote
1 answer

carrierwave image not loading into source code

Not sure what I'm doing wrong on this one. I've followed the Rails Cast for Carrierwave but am having a strange bug where the image isn't showing at all - the (HTML) source code is showing the image tag but nothing inside it. Portfolio Model code: …
1
vote
0 answers

Rails carrierwave + jcrop + bootstrap

I'm using Rails 4 with gems mini_magick, carrierwave, jcrop-rails-v2 and bootstrap-sass. I have a picture upload that crops the image after save it but i need to crop it before save on a bootstrap modal. Found this tutorial:…
William Weckl
  • 2,435
  • 4
  • 26
  • 43
1
vote
1 answer

Carrierwave Profile_Picture Uploader with Devise not uploading in Ruby on Rails 4

I have a user model created with devise. I want to allow these users to upload a profile picture. I am using carrierwave for this and followed the rails cast to do so. However the uploader will not work. I had a look at…
Lewis Frost
  • 557
  • 1
  • 5
  • 25
1
vote
1 answer

Sidekiq doesn't run queue with carrierwave_backgrounder

this is my first atemp to run sidekiq and carrierwave_backgrounder After all when I check my redis data, I can see there is a key: queue:images with params: {"retry":true, "queue":"images", "class":"CarrierWave::Workers::StoreAsset","args":["Image",…
Jakub
  • 1,037
  • 8
  • 21
1
vote
2 answers

Can't upload image to Cloudinary from Sinatra

I'm trying to upload an image to Cloudinary from within my Sinatra web app. I got it saving the image locally by using CarrierWave and I know Cloudinary and CarrierWave play nicely with each other but I've tried everything and no dice. I've followed…
Jem
  • 306
  • 1
  • 13
1
vote
1 answer

carrierwave authenticated_urls and rails 4

I want to use fog_authenticated_url_expiration def fog_public false end It works great, however because of S3's issue with subdomains and dots (.) in bucket names. My path has SSL warnings and I can't change the bucket name to be otherwise…
1
vote
1 answer

Uploading large files with Carrierwave to S3

So I will need to upload large files (zip files that are a few GB large) to S3, and I would like Carrierwave to manage the download/distribution of those files. Meaning, when a user pays Carrierwave can automagically generate the dynamic URL and…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
1
vote
1 answer

Download File issue, CarrierWave upload

Thus far I have successfully set up CarrierWave so that it can upload many files including .pdf, .mp3, .wav, .mp4, and .mov. Awesome that's a pretty good success for me. What I am trying to do now is to display those Uploads. On that display, I…
user2184718
  • 675
  • 1
  • 12
  • 30
1
vote
0 answers

Trouble downloading uploaded file carrierwave

I currently am using carrierwave to upload files to active admin. The way I have it now, I can successfully upload files. The problem now is that I cannot download the files once they are uploaded. Here is my uploads.rb file. ActiveAdmin.register…
user2184718
  • 675
  • 1
  • 12
  • 30
1
vote
1 answer

Rails and carrierwave - images can be uploaded but pdf's can't

I have successfully used carrier wave to upload image files. I want the form to be able to accept image files and pdf's. When I try to upload a pdf, it does not upload the file. It has to do with the line: process :resize_to_fill => [166,166] If…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
1 2 3
99
100