When i try to upload file to google cloud bucket i'm receiving following error "Cannot use ACL API to set object policy when object policies are disabled" .Need help to solve this error.
Asked
Active
Viewed 1,499 times
-2
-
Hi, it would be helpful if you told us what you've tried so far and gave a bit more detail about the error - is there a stack trace? Where exactly are you getting this? Any relevant screenshots you could share? – Paul Benn Nov 15 '19 at 09:47
-
Hi paul, i am working on an ocr project. i want to store the uploaded file (PDF file) in google bucket for later use. When i upload the file using postman i am getting this error – Manohar Nov 15 '19 at 09:56
1 Answers
0
As @Paul Benn mentioned providing as much information as you can about your issue is really helpful for us in order to be able to understand your situation.
But if I had to guess and from what I've been able to find out is that you are attempting to upload with ACL and have the bucket set to "Uniform" instead of "Fine-Grained".
The official documentation states this:
If you enable uniform bucket-level access, you revoke access from users who gain their access solely through object ACLs. Be sure that you read considerations when migrating an existing bucket prior to enabling uniform bucket-level access.
If you provide us with more information we will surely be able to help you more.

Stefan G.
- 890
- 5
- 10
-
Hi Stefan, Thanks for the timely help. we changed from "Uniform" to "Fine-Grained" as you suggested and its working. – Manohar Nov 15 '19 at 10:13