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

Heroku, sinatra & carrierwave. Doesn't load Carrierwave in the first place

I'm getting quite a strange error on heroku. Sometimes when I deploy my app it says uninitialized constant Page::PagePreviewUploader (NameError) like I just don't have Carrierwave gem included... If I restart the app 1-5 times with heroku restart it…
artem_golovin
  • 154
  • 2
  • 15
1
vote
0 answers

carrierwave + grape uploading an image from hashie mash

I have a hashie mash with filename, head, name, content-type, type, etc. #
AJcodez
  • 31,780
  • 20
  • 84
  • 118
1
vote
1 answer

Carrierwave uploading file - undefined method `delete' for nil:NilClass

I'm trying to upload a file in a form using carrierwave gem, but I get the following error: NoMethodError in DashboardController#create : undefined method `delete' for nil:NilClass What am I doing wrong? Request Parameters: {"utf8"=>"✓", …
Cristi
  • 1,195
  • 6
  • 17
  • 24
1
vote
0 answers

CarrierWave :thumb method breaking images

I am using CarrierWave to upload images. I am also using this functionality in ActiveAdmin. I followed the RailsCast and everything is working up to the point where the RMagick gem is coming into play. Before resizing an image and just getting…
user2184718
  • 675
  • 1
  • 12
  • 30
1
vote
1 answer

Carrierwave_Direct's direct_upload_form_for returns undefined method `model_name' for FileUploader:Class

I've been struggling with this for a couple of hours now. When using carrierwave_direct's direct_upload_form_for in my view, it returns me this error: FileUploader Carrierwave Class: class FileUploader < CarrierWave::Uploader::Base include…
Sheharyar
  • 73,588
  • 21
  • 168
  • 215
1
vote
1 answer

PG::UndefinedColumn: ERROR: column photos.attachable_type does not exist

So, I've followed this tutorial but swap @article with current_user or (my user model), and :attachments with :photos or my Photo model. One thing i'll say which might help is I'm not sure why he references attachable? Shouldn't he be referencing…
Sonny Black
  • 1,585
  • 4
  • 23
  • 41
1
vote
1 answer

Could not find a valid mapping for nil

So, I'm using carrier wave to allow users to upload profile images. Now ultimately, I'd like the user to be able to click on the image and upload a new one on the fly in the profile.html.haml page. So, I've tried the below adding a form with a put…
1
vote
2 answers

Carrierwave remove picture and set back to default

I'm using Rails 3 with carrierwave gem. I managed to removed the avatar image from my user model like this: @user.remove_photo! and it works perfectly. However, I want to set the picture url for that user back to the default_url (which is the image…
content01
  • 3,115
  • 6
  • 41
  • 61
1
vote
1 answer

Carrierwave not uploading - no error shown

I've been working on this all night and it makes no sense. I'm adapting an old photo web app to have albums in it. I made "fails" (basically images) a nested resource of albums. I am using carrierwave to upload files to an S3 bucket. the weird…
1
vote
1 answer

Carrierwave implementation not working

I've just finished creating a simple Carrierwave file upload system (via the example at http://railscasts.com/episodes/253-carrierwave-file-uploads) Here is my model: require 'carrierwave/orm/activerecord' class Video < ActiveRecord::Base …
rakoonise
  • 529
  • 3
  • 16
1
vote
2 answers

Elasticsearch Tire Carrierwave remote upload

I'm desperately don't success to make Carrierwave working with Tire (Elasticsearch gem). I have a Question model which was an ActiveRecord one, but I migrated it on Elasticsearch with Tire. Until it was on ActiveRecord everything was working great.…
Gozup
  • 1,005
  • 2
  • 10
  • 20
1
vote
2 answers

Resize gif file without distortion with Rmagick and Carrierwave

I'm trying to resize a gif file but it get distorted. I know that I have to implement something like the mentioned in bottom links but I don't have a clear idea how to do that with…
rdavila
  • 370
  • 3
  • 9
1
vote
1 answer

Carrierwave Versions depending on the file extension

I hava uploader class PimageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage :webdav if Rails.env.production? storage :file if Rails.env.development? version :preview do process resize_to_limit: [640,…
1
vote
0 answers

Carrierwave 503 on image upload

I'm getting a 503 on uploading an image from my iPhone app. I get linked to this page in the response: http://s3.amazonaws.com/heroku_pages/error.html But afterwards, I can view the image fine. I set my permissions to only include me & authorized…
quantumpotato
  • 9,637
  • 14
  • 70
  • 146
1
vote
1 answer

Rails 3-2. Multiple file uploading. Ruby issue

I am using Carrierwave for file uploading and have got the following form, which allows me to submit several files: <%= form_tag load_patterns_contacts_path, multipart: true, multiple: true do %> <%= file_field_tag 'qqfile[]', id:…
Mihail Davydenkov
  • 1,861
  • 2
  • 19
  • 33
1 2 3
99
100