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
6
votes
3 answers

CarrierWave Fog Credentials, Access Denied

I am trying to use CarrierWave with Amazon S3. When I try to upload a file, through a rake task, I get this error: rake aborted! Expected(200) <=> Actual(403 Forbidden) My CarrierWave initializer looks like this: CarrierWave.configure do |config| …
Tyler
  • 829
  • 11
  • 26
6
votes
1 answer

Ruby - Append content at the end of the existing s3 file using fog

How to append text in an existing or newly created file in S3. I am using fog and I have following code require 'fog' file = "abc.csv" bucket = 'my_bucket' storage = Fog::Storage.new(:provider => 'AWS', :aws_access_key_id => 'XXXXXXXX',…
JVK
  • 3,782
  • 8
  • 43
  • 67
6
votes
1 answer

Imperavi Redactor + RubyOnRails + Amazon S3

I need to integrate Imperavi Redactor with Amazon S3. But instead of JavaScript, would like my RubyOnRails application do the upload process, I already use fog, carrierwave and imperavi-rails. Can you help me?
Caio Tarifa
  • 5,973
  • 11
  • 46
  • 73
5
votes
1 answer

Dynamic EC2 Bucket Options for Fog/Carrierwave

I have a Rails3 application which uses Carrierwave and Fog to store data to Amazon's S3. This application I am building requires that I allow each user to have their own secure EC2 bucket. The premise of the application is that the user will…
Gregg
  • 51
  • 3
5
votes
2 answers

Is there a way to do an Upload Progress Indicator for CarrierWave / Fog?

I'm using CarrierWave / Fog in a Rails application to upload videos to Amazon S3. Is there a way to determine the progress of the upload, so that I can display the upload progress being made?
tdewell
  • 353
  • 1
  • 5
  • 13
5
votes
2 answers

howto: Basic setup of carrierwave [Heroku and S3]

I have an S3 bucket for production and development. I have done my research and came across this post but my current config does not work as expected. I get the following exception (below) locally and I get no file uploads to my S3 bucket from my…
rhodee
  • 1,257
  • 1
  • 14
  • 27
5
votes
2 answers

Does Python have anything like Ruby's Fog?

Read about Fog: http://fog.io Does Python have anything like it? (a library for cloud services.) Does it need one?
talloaktrees
  • 3,508
  • 6
  • 28
  • 43
5
votes
1 answer

save_and_process post processing 403 Forbidden Carrierwave_direct S3 Fog

I'm trying to develop direct fileuploads to S3 for my app. I'm following the github tutorial for this and everything is more or less ok but get an error message when trying to make the post processing. I did the following: I have an activerecord…
ndemoreau
  • 3,849
  • 4
  • 43
  • 55
5
votes
3 answers

Which gem is better for working with AWS: aws-sdk or fog?

I am just about to start working with AWS (s3 and ec2) and I was wondering which gem is better: aws-sdk or fog?
Itay k
  • 4,163
  • 4
  • 31
  • 39
5
votes
1 answer

How can I use fog to edit a file on s3?

I have a bunch of files on s3. I have fog set up with a .fog config file so I can fire up fog and get a prompt. Now how do I access and edit a file on s3, if I know its path?
John Bachir
  • 22,495
  • 29
  • 154
  • 227
5
votes
1 answer

CarrierWave url nil after upgrading from Rails 3 to Rails 4

While upgrading our app from Rails 3.2.22 to Rails 4.2.11, several CarrierWave methods that worked prior to the upgrade now return nil, such as .url and .file. We are hosting our assets on AWS S3 and our app is hosted on Heroku. Strangely, the…
Emily Kingan
  • 183
  • 1
  • 7
5
votes
3 answers

Missing required arguments: aws_access_key_id, aws_secret_access_key in server

I keep getting this error whenever I am trying to start the server validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError) I can't seem to solve the issue! I am almost sure that the issue is caused…
hekmat
  • 93
  • 2
  • 8
5
votes
5 answers

NameError: uninitialized constant CarrierWave::Storage::Fog

I have tried several solution given on stackoverflow and github, but couldnt find the solution. I am using carrierwave (0.10.0) and fog-aws (0.8.1) gems for my app to upload image to S3. NameError: uninitialized constant…
Pulkit Agarwal
  • 594
  • 1
  • 9
  • 22
5
votes
1 answer

File uploads using jQuery with jquery.fileupload.js fails in Firefox over SSL

We currently have a setup using FakeS3 and Fog/Carrierwave. In the frontend, we have jQuery file upload (by blueimp) doing the heavy lifting for us, then it gets picked up by our controller and managed on the server. We are using tunnelss and pow.…
groky
  • 101
  • 1
  • 5
5
votes
2 answers

Associate object to pre-existing file on S3, using Paperclip

I have a file already on S3 that I'd like to associate to a pre-existing instance of the Asset model. Here's the model: class Asset < ActiveRecord::Base attr_accessible(:attachment_content_type, :attachment_file_name, …
Simon Lepkin
  • 1,021
  • 1
  • 13
  • 25