How to upload a file on Google Cloud, in a specific bucket directory (e.g. foo)?
foo
\"use strict\"; const gcloud = require(\"gcloud\"); const PROJECT
bucket.upload("1.jpg", { destination: "YOUR_FOLDER_NAME_HERE/1.jpg" }, (err, file) => { //Do something... });
This will put 1.jpg in the YOUR_FOLDER_NAME_HERE-folder.
1.jpg
YOUR_FOLDER_NAME_HERE
Here is the documentation. By the way, gcloud is deprecated and you should use google-cloud instead.