Skip to content

Gettting publicRead URL from gcs_upload #59

@mwhitaker

Description

@mwhitaker

Hi Mark,

Thanks for a great package. This is not really an issue, but was wondering about the public URL when you use gcs_upload(file, predefinedAcl = "publicRead").

==Google Cloud Storage Object==
.
.
Download URL:    https://storage.cloud.google.com/bucket/file.png

However, the file would be publicly accessible at something like https://storage.googleapis.com/bucket/file.png not https://storage.cloud.google.com/bucket/file.png

Obviously I can just build the URL myself but was curious if the "right" URL is somewhere in the response, just in case Google changes URLs at some point.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions