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

How do I know if Carrierwave is initialized and uploader is mounted?

I'm setting up an uploader (which I've done without any problems a million times before) however when I submit the form, it doesn't appear that carrierwave has any interaction with the mounted column. The form submission is successful, however for…
0
votes
2 answers

Resetting S3 bucket on Heroku to the default setting

I am trying to configure my app for uploading images with carrierwave/fog/AWS. I ran the following command in my terminal and need to reset it to the default setting. I've searched documentation but cannot find anything on this topic. Any ideas? The…
John
  • 443
  • 8
  • 19
0
votes
1 answer

Delete Carrierwave S3 Directory With Processed Files

In my case, when users upload an image to S3 through Carrierwave (using fog) – their original image is processed and optimized copies are made and stored in S3 as well. However, when users delete these images – Carrierwave removes only the original,…
cmw
  • 946
  • 2
  • 11
  • 26
0
votes
1 answer

Dealing with null bytes when creating ec2 with user_data using fog

I am trying to provision an ec2 instance using fog, here is the code that I am using: compute = Fog::Compute.new provider: 'AWS', region: 'us-east-1', aws_access_key_id: ACCESS_KEY, aws_secret_access_key:…
CuriousMind
  • 33,537
  • 28
  • 98
  • 137
0
votes
1 answer

How to upload images to Rackspace Cloud Files using rake task?

I'm trying to use Fog /Carrierwave/ with Rackspace Cloud Files. I have bunch of uploaded images in my production server. I'm trying to upload these images to Rackspace Cloud Files using below rake task. desc 'Transfer photos to rackspace' task…
Zeck
  • 6,433
  • 21
  • 71
  • 111
0
votes
2 answers

how to apply sync_clock option on S3 upload with CarrierWave in Ruby On Rails

I got This error Every time due to difference between the request time and the current time is too large. I found that we need to apply sync_clock option but not able to configuration place.see my configuration please help us to configure to sync…
jayesh
  • 2,422
  • 7
  • 44
  • 78
0
votes
1 answer

Fog authenticated URL with S3/CloudFront

I'm using Carrierwave to upload files to my app. I'm also using the Fog gem to store my files on S3, and on top of that, I'm creating a distribution in CloudFront for everything inside my bucket. I have several questions... I need to create 'file…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
0
votes
1 answer

Carrierwave dynamic storage type via model attributes

I want to save photographs in 'grid_fs' and other types of files into 'fog', like: class DocumentUploader < CarrierWave::Uploader::Base def storage if model.is_photograph == true :grid_fs else :fog end end end Is this…
0
votes
1 answer

Production issue with carrierwave and S3

I was wondering if someone could help me, I've recently added the ability to upload images in my rails application using carrierwave, fog, and S3 for storage. The application is running on Ruby-1.9.3-p194 and Rails 3.2.11 and in development the…
0
votes
1 answer

Carrierwave (with FOG) filename extension mismatch in view

I am uploading an audiofile and make a mp3 version, which works. Additionally I am generating a waveform out of the mp3 as a "png". Wich also works well. The image was generated and saved but with "mp3" as suffix, which should be "png". The view…
Jan
  • 12,992
  • 9
  • 53
  • 89
0
votes
1 answer

Carrierwave / Fog to S3 fails with files over 5mb

I have a Rails 4 app that uses Carrierwave and Fog to upload files to Amazon S3. The servers the app uses is Nginx and Thin. The problem I'm having is when uploading files over 5mb. I've tried searching everywhere for a way to get it working, I've…
0
votes
0 answers

Same strings with special characters not equivalent with itself (in ruby), how is that possible?

I'm uploading directly to S3 with FOG and a file has some special characters.. But when i try to FOG_STORAGE.directories.get(AWS_BUCKET_TEMP).files.get(file_name) it doesnt get the file =I I debugged and found that: file_name ==…
felipepastorelima
  • 947
  • 1
  • 10
  • 23
0
votes
1 answer

get the operating system of an Amazon image via Fog

My end goal is to get the operating system of an Amazon image. When I do: connection = Fog::Compute.new(provider: 'AWS', aws_access_key_id: 'blah', aws_secret_access_key: 'thing') images =…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
0
votes
1 answer

Paperclip & Fog: Getting 'NameError (uninitialized constant Fog):'

Paperclip/Fog works on my local machine (Mac 10.8.4), but fails on server (Ubuntu 10.04 LTS). We have been using paperclip fine with local storage, but last night, migrated to cloud files and I'm getting this: 'uninitialized constant Fog'…
Miriam H.
  • 671
  • 2
  • 8
  • 25
0
votes
0 answers

Carrierwave/Fog - Undefined Method 'Defaults' for Excon:Module

I'm stuck. I'm using carrierwave/fog to implement a simple image upload system. Here is my uploader: class OfficeImagesUploader < CarrierWave::Uploader::Base # Include RMagick or MiniMagick support: include CarrierWave::RMagick # include…
user1427661
  • 11,158
  • 28
  • 90
  • 132