Questions tagged [fog]

fog describes itself as 'the Ruby cloud services library'.

fog describes itself as 'the Ruby cloud services library'. It is available at https://fog.io/

498 questions
0
votes
1 answer

CarrierWave not working with Fog -> ArgumentError ( is not a recognized storage provider): app/controllers/notes_controller.rb:11:in `create'

I followed the railscasts about using carrierwave with fog with aws s3 to the T but it doesnt seem to work. The Gemfile is as follows: source 'https://rubygems.org' ruby '1.9.3' gem 'rails', '3.2.13' # Bundle edge Rails instead: # gem 'rails',…
0
votes
1 answer

Carrierwave cannot save file

Carrierwave keeps returning the error below when i tried to save a remote url. photo = space.photos.build photo.remote_image_url = photo_url photo.save! # NoMethodError: undefined method `gsub!' for nil:NilClass Any ideas?
Michael Yagudaev
  • 6,049
  • 3
  • 48
  • 53
0
votes
1 answer

how to use glFogCoordEXT in GLSL

I used glFogCoordEXT to distinguish explored and unexplored terrain. But after i use a shader for normal mapping on terrain, its working fine but the fog is no more there. can some one help me, (i don't know glsl).
Rakesh Malik
  • 607
  • 1
  • 6
  • 27
0
votes
1 answer

How do I centrally configure Fog credentials using environment variables?

Other questions answer how to open (and save) a Fog connection with ENV variables, or how to configure Carrierwave with ENV variables, but I want to set the Fog credentials universally and in one place.
Narfanator
  • 5,595
  • 3
  • 39
  • 71
0
votes
2 answers

How do I dynamically generate a download link for file uploaded to S3 with Carrierwave?

I have 2 models that I want CarrierWave to interact with. Item and Image models. What I want to happen is once the user uploads their item to S3 via Carrierwave - that part is pretty straight forward - whenever another user wants to download the…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
0
votes
0 answers

Uploading Videos to S3 with Carrierwave and Fog

I have configured my testapp with Carrierwave and Fog. My goal is to upload videos to Amazon S3 but if I try to upload a video I get an error "pipe broken". It works if I'm just uploading a picture, so my Amazon configs should be ok! Does…
crispychicken
  • 2,592
  • 2
  • 33
  • 50
0
votes
1 answer

deleting multiple files (versions) with Fog and Carrierwave - Rackspace

I am building an application where i have a file with original, medium and thumbnail size images. I am using carrierwave to accomplish this, and I need to remove all versions of the file from Rackspace Cloud Files: class StyleImageUploader <…
Joel Grannas
  • 2,016
  • 2
  • 24
  • 46
0
votes
1 answer

S3 Read Progress with Fog

I am trying to download a large (>500mb) file from s3 with fog. I would like to check on progress, but it seems to download the file multiple times. I'm using: connction = Fog::Storage.new( provider: 'AWS', aws_access_key_id: key_id, …
Pete Hamilton
  • 7,730
  • 6
  • 33
  • 58
0
votes
1 answer

carrierwave fog storage

I just cant figure out how to do this. I need to get the S3 path without the filename https://testphotobucket.s3.amazonaws.com/uploads/51237a37ff770df332000007/ and not like…
Axil
  • 3,606
  • 10
  • 62
  • 136
0
votes
1 answer

Amazon s3 bucket name warning from Fog gem

I get this warning when all rails server, console setup. [WARNING] fog: the specified s3 bucket name(hesaplabakalim-production/assets/new_opengraph) is not a valid dns name, which will negatively impact performance. My fog configuration is…
eyupatis
  • 579
  • 1
  • 5
  • 16
0
votes
0 answers

issues setting up S3 with carrierwave and fog in Heroku

I've been trying to upload files to Amazon S3 through a form, but I'm getting some errors I do not know how to fix. Does somebody have experience this type of errors? Heroku log errors: response => #
evanx
  • 1,291
  • 4
  • 17
  • 33
0
votes
1 answer

Carrierwave Fog (S3) Heroku

I am struggling with this setup and have read through Carrierwave docs and still and pulling hair. I'm getting an error when I try to start the server even in dev mode. Exiting …
Chapsterj
  • 6,483
  • 20
  • 70
  • 124
0
votes
2 answers

Uploading to Rackspace Cloud Files with paperclip and fog

Can't figure out how to do this? and couldn't find much help from anywhere else! I have set up the paperclip and fog like this; config/initializers/fog.rb connection = Fog::Storage.new({ :provider => 'Rackspace', …
Shakeeb Ahmad
  • 2,010
  • 1
  • 25
  • 30
0
votes
1 answer

Don't have 'fog' gem installed in production using carrierwave and unicorn

I am trying to use Fog with Carrierwave and am getting this error in the Unicorn log. I have fog in my gemfile and my NodeImageUploader calls storage :fog Gemfile source 'http://rubygems.org' gem 'rails', '3.2.8' gem 'bcrypt-ruby', '3.0.1' gem…
rohitmishra
  • 8,739
  • 7
  • 33
  • 34
0
votes
1 answer

When updating a _form partial that has an image, but not the image, I get an error

I am using Carrierwave & Fog to push images str8 to S3. The creation action works just fine. The issue is whenever I go to update the record, say change the name attribute, and I don't do anything to the image fields, I get an error that looks like…
marcamillion
  • 32,933
  • 55
  • 189
  • 380