Problem description
The user metadata in your request exceeds the 8 KB size limit. Reduce the total size of all x-oss-meta-* headers in the request.
Causes
User metadata headers are custom HTTP headers that begin with x-oss-meta-. A PutObject request can include multiple x-oss-meta-* headers, but the total size of all user metadata cannot exceed 8 KB.
This error occurs when the following condition applies:
Total user metadata exceeds 8 KB
The total size of all x-oss-meta-* header names and values in the request is 8 KB or more.
Header name contains unsupported characters
User metadata header names may only contain letters, digits, and hyphens (-). Uppercase letters are automatically converted to lowercase. All other characters — including underscores (_) — are not supported.
| Allowed | Not allowed |
|---|---|
x-oss-meta-file-type | x-oss-meta-file_type (underscore) |
x-oss-meta-author123 | x-oss-meta-author@corp (special character) |
Examples
None.
Solutions
Audit all
x-oss-meta-*headers in your request.Check the total size of all header names and values. Confirm the total is under 8 KB.
If the total exceeds 8 KB, shorten header names or values, or remove headers that are not needed.
If any header name contains characters other than letters, digits, or hyphens, rename it to use only allowed characters.