Back

mime type for docx too long?

  • 0
  • Self Hosted
  • Web
djcali
14 Jan, 2025, 21:51

Hello, I am trying to upload a docx file to storage, but the mime type is too long. I get the following error: 'Invalid document structure: Attribute "mimeType" has invalid type. Value must be a valid string and no longer than 50 chars' The mime type for docx i am pretty sure is application/vnd.openxmlformats-officedocument.wordprocessingml.document which is longer than 50 chars. Is it possible to upload a docx file?

TL;DR
Developers are experiencing issues uploading docx files due to the mime type being too long. The mime type for docx files exceeds the 50 character limit allowed. Consider using a shorter mime type or customizing the validation to allow longer mime types if possible.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more