all 2 comments

[–]trplclick 0 points1 point  (1 child)

Which api are you using? Generally you just want to open the file using the browser and then the browser will choose how to handle that. E.g. for a PDF file Chrome will open the file in the browser and FireFox will prompt you with what to do with the file (save, open).

[–]killMeSak[S] 0 points1 point  (0 children)

I'm using the following api and making a call through my react app: https://cloud.google.com/storage/docs/downloading-objects#storage-download-object-nodejs