0006-00000226

Updated at:

Problem description

A form field that does not exist in the body of the PostObject request is used by the conditions parameter.

Causes

You initiate a PostObject request to upload a file. However, a form field that does not exist in the body of the PostObject request is used by the conditions parameter.

Examples

The following code provides an example. In this example, the first parameter of the eq match condition is success_action_status and the second parameter is 200 in the policy form field in JSON format, which indicates that the value of the success_action_status parameter in the policy form field of the request body must be 200. If a form field named success_action_status does not exist in the request body, an error is returned.

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

Solutions

Make sure that the form field required by each condition specified by the conditions parameter exists in the request.

References