Questions tagged [fog-google]

12 questions
2
votes
0 answers

Carrierwave uploading file using fog to google cloud storage without making bucket public and control access fine-grained in rails

Is there a way i can upload files while keeping bucket private and access control uniform? as i am trying to use carrierwave with fog for this purpose and followed carrierwave gem instructions but i receive this error "Cannot insert legacy ACL for…
2
votes
1 answer

How to list files in a Google Storage bucket with fog-google

Using fog-google and JSON API, how does one list files in a bucket with a given prefix? This hangs: require 'fog/google' storage = Fog::Storage.new(:provider => 'Google', :google_project => project, :google_json_key_string =>…
banzaiman
  • 2,631
  • 18
  • 27
1
vote
1 answer

CarrierWave: Cannot insert legacy ACL for an object when uniform bucket-level access is enabled

Uploading file to google cloud bucket was working fine when we had "Fine-grained" access. Later it is changed to "uniform bucket-level access". Now upload operations are failing with the below error. invalid: Cannot insert legacy ACL for an object…
1
vote
0 answers

signed url configuration for google cloud

I am using carrierwave fog-google configuration for file download and upload to GCS bucket. However, my concern is I wanted to have a signed URL returned from GCS response with some expiration time. Is there any configuration I need to set which…
1
vote
2 answers

Fog-Google Storage Specify Project

There appear to be a lot of different docs on how to configure Google Storage with Fog. I've been able to get Paperclip to work with just a few parameters and was hoping to keep things simple for doing some basic file storage and…
Tom Rossi
  • 11,604
  • 5
  • 65
  • 96
1
vote
2 answers

Fog-google doesn't find credentials

I have a Rails 5 application with Carrierwave. I would like to use fog-google gem but I cannot set it up because fog cannot retrieve the credentials. I created a .fog file in my application root populated this way: default: google_project:…
a.barbieri
  • 2,398
  • 3
  • 30
  • 58
1
vote
0 answers

Ruby Fog + Google Cloud Storage : signed URL from put_object_url generates InvalidPolicyDocument

I currently use Google Cloud Storage with paperclip for image uploads. Everything works fine and my credentials are valid. I now wish to generate a signed URL on Google Cloud Storage to give to users. First I create a storage object: storage =…
Rick
  • 8,366
  • 8
  • 47
  • 76
1
vote
1 answer

How to set the Cache Control header with Paperclip / fog for a file hosted on Google storage?

I'm able to upload files to my google storage bucket with Paperclip and fog-google. How can I set file headers ? I am searching for an equivalent to s3_headers option in fog-aws. I have tried google_headers and fog_headers options with no success.
slaur4
  • 494
  • 3
  • 11
1
vote
1 answer

Best practices to use Fog::Logger

What are the best practices to use Fog::Logger. Fog provides 3 types of logging: debug deprecation warning module Fog class Logger @channels = { :deprecation => ::STDERR, :warning => ::STDERR } @channels[:debug] =…
Shaffan
  • 53
  • 10
0
votes
1 answer

Settting up environment variable GOOGLE_APPLICATION_CREDENTIALS

I am trying to setup the service-account and storing the credential file inside linux server and storing the path in GOOGLE_APPLICATION_CREDENTIALS provided by Google. It is said that Google Cloud Client Libraries use a library called Application…
0
votes
1 answer

how to test carrierwave fog google in rspec with setting up the configuration

I have below configuration and I wanted to write TC for it in ruby. I am new to ruby and wanted to understand how we can set the configuration of Fog to point to mock and use it in test-case. class TestUploader < CarrierWave::Uploader::Base …
0
votes
1 answer

uploading large file on google cloud bucket failing

I am uploading a large file from my local system or an remote_url to google bucket. However everytime I am getting the below error. /usr/local/lib/ruby/3.0.0/openssl/buffering.rb:345:in `syswrite': execution expired…