All Products
Search
Document Center

Object Storage Service:0006-00000103

Last Updated:Apr 30, 2025

Problem description

The format of the form fields in the PostObject request is invalid.

Causes

You initiated a PostObject request. However, the format of the form fields in the request is invalid. Possible causes:

  • The file field is not the last field. The last field must be the file field.

  • The names of the form fields are not case-sensitive. The names of the form fields must be case-sensitive, such as Policy, Key, file, OSSAccessKeyId, and Content-Disposition.

Examples

The error is returned because the file field is not the last field.

POST / HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Content-Length: 6443500495
Date: Sat, 18 Feb 2023 05:17:02 GMT
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryW0DET1iaBMeAOBg3
Host: example-bucket.oss-cn-hangzhou.aliyuncs.com
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="name"
big.img
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="key"
${filename}
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="policy"
eyJl********
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="file"; filename="big.img"
Content-Type: application/octet-stream
***
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="OSSAccessKeyId"
LTAI****************
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="success_action_status"
200
------WebKitFormBoundaryW0DET1iaBMeAOBg3
Content-Disposition: form-data; name="signature"
miAo********
------WebKitFormBoundaryW0DET1iaBMeAOBg3--

Solutions

Make sure that the file field is the last field in the PostObject request and the format of the form fields in the request body is valid.

References