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

前端 未结 5 482
忘掉有多难
忘掉有多难 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:42

    Finally managed to PUT files to Google Cloud Storage using signed URLs. This was done by creating a simple Java program to simulate:

    • Server to sign & encode a string as signature.
    • Uploader as an unauthenticated user submitting the PUT request using only the signature provided by Server. Browser is simulated using Apache's HTTP Client library.

    You can see the demo app here.

    I do not really understand why it did not work when I submitted through Chrome's Postman extension.

提交回复
热议问题