Problem description
The required conditions parameter is missing in the policy form field in the PostObject request.
Causes
You initiate a PostObject request to upload an object. However, the conditions parameter is missing in the policy form field.
Examples
The following code provides an example. In this example, the policy form field in the JSON format does not contain the conditions parameter.
{
"expiration": "2023-02-19T13:19:00.000Z"
}
Solutions
Make sure that the policy form field in the JSON format contains the expiration and conditions parameters.
{
"expiration": "2023-02-19T13:19:00.000Z",
"conditions": [
["content-length-range", 0, 1048576000]
]
}
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.