Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

61311: Content type doesn't match the declared file

Twilio TrustHub DocumentationTrustHub

Description

description page anchor

Twilio rejected your document upload because the file's actual content type doesn't match the type declared by its filename or extension. For example, you might upload a PNG image but give it a .pdf extension.

Possible causes

possible-causes page anchor
  • The file was renamed to an extension for a different format without converting it. For example, renaming scan.png to scan.pdf.
  • The Content-Type header sent with the upload doesn't match the file's actual format.
  • The file was saved or exported incorrectly, so its content doesn't match the extension.
  • Convert the file to the format indicated by its extension, or rename it so the extension matches the actual format.
  • Make sure the Content-Type header in the upload request matches the file's actual format.
  • Re-export the document from its source application, then upload it again.