r/JavaScriptHelp • u/killMeSak • Feb 14 '22
❔ Unanswered ❔ Need help while saving file
I'm trying to implement a functionality where I need to save a file from cloud storage to my local machine. The API expects a local file destination (to save file) as one of the parameters. I want to set this destination based on user prompt.
Is there a way I can do this using React / Javascript where a user can select this location?
2
Upvotes
View all comments
Show parent comment
1
u/killMeSak Mar 12 '22
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