PUT files to Google Cloud Storage (GCS) via Signed URLs

前端 未结 5 476
忘掉有多难
忘掉有多难 2020-12-16 00:08

I am trying to use \"signed URLs\" to access/upload files to Google Cloud Storage (GCS).

Followed the instructions at https://developers.google.com/storage/docs/acce

5条回答
  •  一向
    一向 (楼主)
    2020-12-16 00:51

    To run signed url from browser you have to set HTTP header . In https://developers.google.com/storage/docs/accesscontrol#Construct-the-String

    Content_Type Optional. If you provide this value the client (browser) must provide this HTTP header set to the same value.There is a word must

    So if you are providing Content_Type for sign string you must provide same Content_Type in browser http header.I was also running from the same problem when i set Content_Type in browser header i was able to download a document.

提交回复
热议问题