All Products
Search
Document Center

Object Storage Service:0006-00000208

Last Updated:Jul 21, 2023

Problem description

The required expiration field is missing in the policy form field in a PostObject request.

Causes

You initiate a PostObject request to upload an object. However, the required expiration field is missing in the policy form field in the request. As a result, a request error is reported.

Examples

The following sample code provides an example of the policy form field in the JSON format. In this example, the required expiration field is missing.

{
    "conditions": [
        ["content-length-range",  0, 1048576000]
		]
}

Solutions

Make sure that the policy form field in the JSON format contains both the expiration and conditions fields.

{
    "expiration": "2023-02-19T13:19:00.000Z",
    "conditions": [
        ["content-length-range",  0, 1048576000]
		]
}

References