/storecloud

Allows image uploads directly from the browser to Google Cloud Storage

Primary LanguageJavaScript

storecloud

Setup (Google Cloud)

Generate a key

  1. Generate a private key and convert it to a .pem file using openssl:
openssl pkcs12 -in *.p12 -out google-services-private-key.pem -nodes -clcerts
  1. The password is always "notasecret"
  2. Save this file to a directory that clients unable to reach

Setup CORS

gsutil cors set docs/gs-cors.json gs://mybucket