Skip to main content

STORAGE_CONTENT_TYPE_REQUIRED

Encountering an error? Get help with AI tools

Error Cause​

The bucket has an allowed_mime_types allowlist, but the upload information request does not declare a Content-Type header.

Solution​

  1. Add a Content-Type header whose value matches the actual file type;
  2. Verify that the type is included in the bucket allowlist;
  3. Add the header before retrying; retrying without it will not succeed.