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
8
votes
2 answers

Carrierwave + s3 + fog (Excon::Errors::SocketError)

I'm currently getting the following error: Excon::Errors::SocketError - Broken pipe (Errno::EPIPE) when uploading images bigger than about 150kb. Images under 150kb work correctly. Research indicates that others have also experienced this problem…
user788581
7
votes
2 answers

CarrierWave and Fog, S3 bucket and store_dir configuration

I'm trying to figure out how to setup CarrierWave to work with Fog and Amazon S3. On S3, I have a bucket, "bucket1" with folder "images". Uploads work fine. For example, an image might get uploaded to something of the form…
Jonathan Mui
  • 2,471
  • 3
  • 19
  • 27
7
votes
2 answers

Carrierwave uploading with s3 and fog

been trying to search the reason for this error for a long time and can't seem to find any... So I have a rails app, and I utilize carrierwave for pictures uploading. I also want to utilize Amazon S3 for file upload storage in my app. Initially as I…
Jeff Lam Tian Hung
  • 125
  • 1
  • 1
  • 7
7
votes
2 answers

Granular 'public' settings on uploaded files with Fog and Carrierwave

I am creating a rails app that lets an administrator upload photos that are optionally publicly displayed. For the upload / storage process I am using the Carrierwave gem along with the Fog gem and S3. The issue is that in order to get this all…
dcb
  • 940
  • 1
  • 8
  • 12
7
votes
1 answer

Ruby Fog gem: how to create sub-directories?

I have connection = Fog::Storage.new(fog_config) bucket = connection.directories.get(bucket_name) Is there a way (documented, non-documented, work-around) for me to create directories inside of this bucket? Something…
RoundOutTooSoon
  • 9,821
  • 8
  • 35
  • 52
7
votes
1 answer

Duplicated key at line 80 ignored: "name" rvm

This doesn't seem to have affected anything, it's just irritating in my terminal - I regularly receive the following warning (sometimes I receive multiple, calling out different lines, and sometimes the path after /gem/ varies, but other than that,…
Alec Wilson
  • 566
  • 1
  • 7
  • 18
7
votes
1 answer

Why is `rake assets:precompile` throwing "getaddrinfo: Name or service not known"? (re: asset_sync)

I am trying to set up my rails app to upload its assets to Amazon's AWS S3 using the asset_sync gem, following these instructions. I know I've got my S3 stuff configured right because my app is otherwise able to upload images to S3. I'm pretty sure…
user664833
  • 18,397
  • 19
  • 91
  • 140
6
votes
1 answer

Carrierwave Gem - Heroku - Fog Gem configuration - Giving name error

I am a little lost with Heroku and Carrierwave Gem. I have read the WIKI, Read me and searched the net and i admit, i need help. Everything well on local but Heroku crushes the application. ///ERROR MESSAGE FROM HEROKU LOGS 2012-01-03T17:33:26+00:00…
Benjamin
  • 2,108
  • 2
  • 26
  • 46
6
votes
1 answer

Save files using paperclip via API

I'm using paperclip to manage uploads, backed onto S3 via Fog. It works well. I'm trying to take attachments out of emails and save them via paperclip (using the same model etc). Email are parsed by an external service and POSTed to my app,…
cjm2671
  • 18,348
  • 31
  • 102
  • 161
6
votes
1 answer

Paperclip, fog.io and Rackspace

I'm trying to find documentations on how to setup Paperclip to use fog.io and fog.io to use Rackspace Cloud File, but I wasn't able to find any good reference (and I consider myself a good Google language speaker :D). The ideal scenario would be a…
David Lojudice Sb.
  • 1,302
  • 1
  • 15
  • 26
6
votes
1 answer

Rails: sporadic Carrierwave/Excon errors

Using carrierwave for our uploaders, we get a couple of Excon errors each week from our production app. For example: Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request) excon.error.response :body => "
lobati
  • 9,284
  • 5
  • 40
  • 61
6
votes
4 answers

When editing a record that has a previously successfully uploaded image, how do I not have to re-upload on edit?

I am using Carrierwave, Fog to store images upload to S3. The issue is that when I go to edit a record, the "file" & "photo" field automatically goes blank. So if I want to preserve the image or file in the record I have to re-upload it. Otherwise,…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
6
votes
4 answers

No Fog After Build

I've enabled a fog in the render settings on my scene. It works perfectly while testing it on the Unity editor, but after opening the game after building, the fog disappears. I'm not sure but according to some sources on the web, I found out that…
user3616302
  • 61
  • 1
  • 2
6
votes
2 answers

Use Fog with Ruby to generate a Pre-signed URL to PUT a file in Amazon S3

I am using the Fog gem to generate presigned urls. I can do this successfully to get read access to the file. Here's what I do: fog_s3 = Fog::Storage.new({ :provider => 'AWS', :aws_access_key_id =>…
Joe R
  • 115
  • 1
  • 2
  • 7
6
votes
2 answers

Build Fog gem with just required providers and limit dependencies

I'm using the excellent Fog gem to access just the Rackspace Cloud Files service. My challenge is that I'm trying to keep the service that is accessing Cloud Files lightweight, and it seems that Fog through its flexibility has a lot of dependencies…
Phil
  • 2,797
  • 1
  • 24
  • 30
1 2
3
33 34