--- title: 5006: Content type mismatch | API Docs description: File content type does not match URL extension. --- File content type does not match URL extension. This is an HTTP 400 error indicating the MIME type of the file does not agree with the file extension in the URL. ## Troubleshooting - Ensure the URL extension matches the actual file type - Alternatively, download the file and upload it using a presigned URL ## Related - [Attachments](/guides/messaging/attachments/index.md) - [API reference: Attachments](/api/resources/attachments/index.md)