CulturalMe / meteor-slingshot

Upload files directly to AWS S3, Google Cloud Storage and others in meteor
MIT License
595 stars 104 forks source link

allow uploading without public-read-write? #207

Closed kevinaltschuler closed 7 years ago

kevinaltschuler commented 7 years ago

I was able to get slingshot to work with GCS when my bucket's acl was public-read-write, but I don't want to allow public write access. The only problem is that now when I try to upload i get the error

I know this may not be the right place but just wondering if there's something I missed during the setup to always allow users to upload if they're sending the request from my domain.

index.jsx:67 Error: Failed to upload file to cloud storage [ - 403]: 

<?xml version='1.0' encoding='UTF-8'?>
  <Error>
    <Code>AccessDenied</Code>
    <Message>Access denied.</Message>
    <Details>Caller does not have storage.objects.create access to bucket MY-BUCKET-NAME</Details>
</Error>
kevinaltschuler commented 7 years ago

Solved! I added my Google Access Id as a user in my buckets permissions.