Download file from Amazon S3 using REST API

后端 未结 2 859
说谎
说谎 2021-02-10 09:21

I have my own REST API to call in order to download a file. (At the end, the file could be store in different kind of server... Amazon s3, loca

2条回答
  •  半阙折子戏
    2021-02-10 10:16

    Return a HTTP 303 Redirect with the Location header set to the blob's public URL in the S3 bucket.

    If your bucket is private then you need to proxy the request instead of performing a redirect, unless your clients also have access to the bucket.

提交回复
热议问题