Skip to content

Support explicit MIME type for document uploads #334

Description

@gijsmin

The /chat/send/document endpoint currently appears to determine the document MIME type from the file bytes, likely using content detection.

This causes problems for files such as .xlsx, because they are ZIP containers internally and can be detected or displayed as ZIP files instead of Excel documents.

Please add an optional MIME type field to the request payload, for example:

{
  "Phone": "123456789",
  "FileName": "report.xlsx",
  "MimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
  "Document": "data:application/octet-stream;base64,..."
}

This would allow callers to send Office documents and other ZIP-based formats with the correct file type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions