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.
The
/chat/send/documentendpoint 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.