All Products
Search
Document Center

Object Storage Service:0006-00000207

Last Updated:Jul 21, 2023

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