Created
June 15, 2017 11:13
-
-
Save tuanngominh/e4bd297c7e6f9717f5c207f89359f885 to your computer and use it in GitHub Desktop.
google cloud storage upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bucket = gcs.bucket("bucket-name"); | |
bucket.upload("/tmp/temp.csv", { | |
destination: "csv-folder/file.csv" | |
}, function(err, file) { | |
if (!err) { | |
// done | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment