0006-00000226
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
-
For more information about the policy form field, see Appendix: Policy.
-
For information about how to transfer data from a web client to OSS by using form upload, see Add signatures on the client by using JavaScript and upload data to OSS.
-
For information about common errors and troubleshooting methods of the PostObject operation, see Errors and troubleshooting methods of PostObject.