0006-00000226

更新时间:
复制 MD 格式

Problem description

A form field referenced in the conditions parameter of the Post policy does not exist in the PostObject request body.

Causes

Each condition in the conditions parameter acts as a validation rule: OSS checks that the specified form field exists in the request body and matches the required value. If the form field is missing from the request body, the request fails.

Examples

The following policy uses an eq condition to require that success_action_status equals 200. This means the request body must include a form field named success_action_status with the value 200. If that form field is absent, OSS returns an error.

{
    "expiration": "2023-02-19T13:19:00.000Z",
    "conditions": [
        ["eq", "success_action_status", "200"]
    ]
}

Solutions

Make sure every form field referenced in the conditions parameter is included in the PostObject request body.

References