Google Cloud Storage Signed URL Upload + Dropzone.js

前端 未结 1 382
栀梦
栀梦 2021-01-05 18:51

I\'m trying to use Dropzone.js to upload directly to Google Cloud Storage using a Signed URL. I\'ve managed to override the upload URL for each file added to Dropzone. Chrom

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 19:18

    GCS has two APIs. The first, the XML API, uses domains like storage.googleapis.com. The second, the JSON API, uses domains like www.googleapis.com.

    You're using the JSON API, which is fine, but unfortunately it doesn't support signed URLs. Craft an upload URL using the XML API's format: https://cloud.google.com/storage/docs/xml-api/put-object-upload

    0 讨论(0)
提交回复
热议问题