Skip to content

docs: document optional MimeType field for send document endpoint - #378

Closed
arthvin wants to merge 2 commits into
asternic:mainfrom
arthvin:docs/send-document-mimetype
Closed

arthvin wants to merge 2 commits into
asternic:mainfrom
arthvin:docs/send-document-mimetype

Conversation

@arthvin

@arthvin arthvin commented Oct 8, 2026

Copy link
Copy Markdown

Explain that MimeType specifies the real document MIME type and, when omitted, wuzapi falls back to http.DetectContentType which misclassifies .xlsx/.docx as application/zip. Recommend always sending it for Office and non-trivial types. Update the curl example to include MimeType.

Explain that MimeType specifies the real document MIME type and, when omitted, wuzapi falls back to http.DetectContentType which misclassifies .xlsx/.docx as application/zip. Recommend always sending it for Office and non-trivial types. Update the curl example to include MimeType.
@arthvin arthvin closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant