Amazon S3 POST, event when done?

前端 未结 2 1809
太阳男子
太阳男子 2021-01-02 17:33

I\'m using Amazon S3 with a simple project, when the user uploads a file, I first use an XMLHTTPRequest to send the details to my database, then trigger the form POST that u

2条回答
  •  醉梦人生
    2021-01-02 17:41

    Amazon S3 will redirect to the url specified in the success_action_redirect field or if that's not specified, it returns an empty document with the status code specified in success_action_status.

    On completion of the POST, the user is redirected to the location that you specified in the success_action_redirect field. If Amazon S3 cannot interpret the URL, it ignores the success_action_redirect field.

    If success_action_redirect is not specified, Amazon S3 returns the empty document type specified in the success_action_status field.

    If the POST fails, Amazon S3 displays an error and does not provide a redirect.

    See the AWS docs for more details.

提交回复
热议问题