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

607 views Asked by At

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 when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access (Google::Apis::ClientError)

Any solutions/suggestions to tackle this issue.

Using 'carrierwave': '1.3.2'

1

There are 1 answers

0
sagar verma On BEST ANSWER

If we set fog_public returns as nil, CarrierWave upload would work with uniform bucket-level access.