0006-00000211

更新时间:
复制 MD 格式

Problem description

The expiration field in the PostObject policy form field is set to an empty string.

Causes

The PostObject request includes a policy form field where expiration is an empty string. OSS requires expiration to be a valid timestamp, so the request is rejected.

Examples

The following policy triggers this error because expiration is an empty string:

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

Solutions

Set expiration to a valid ISO 8601 timestamp in GMT. For example, "2023-02-19T13:19:00.000Z" represents February 19, 2023 at 13:19 GMT.

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

References