I want users to be able to open the files stored in GCP's Storage without the need to download them.
How to make objects in Google cloud storage open instead of download?
1.5k views Asked by AudioBubble At
1
I want users to be able to open the files stored in GCP's Storage without the need to download them.
You can change the metadata of your file,
gsutil
commandYou have to change the
content-type
of your file. If this content type is known by your browser (or one of its extensions), the file is directly displayed into the browser. Else, it is downloaded.The content type is set by default when you upload the file.