[Fixed]-Django-storage using apache-libcloud to upload files to google storage as shared publicly

1👍

You can set the default object access control on your bucket to give public read access to newly-created objects.

Apache Libcloud allows you to send extra headers with your request, and you can effect the same behavior by adding the x-goog-acl header to the upload request. Their docs don’t show it, but it’s analogous to their S3 example.

However, it appears that django-storages’s wrapping of libcloud doesn’t allow for providing that data, so you’ll likely have to rely on the bucket default object access control.

Leave a comment