/gcloud-upload-example

Uploading a file from the browser with gcloud-node

Primary LanguageJavaScript

GCS + Express File Uploads

File uploader

Set the following environment variables:

  • GCLOUD_BUCKET: The name of your target bucket
  • GCLOUD_PROJECT_ID: Your project's ID (e.g. grape-spaceship-123)
  • GCLOUD_KEY_FILENAME: The path to your JSON service account keyfile
$ npm install
$ npm start

Visit http://localhost:8080.