mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-10 09:02:36 +08:00
55f7eca2e8
The original PR accepts files to the `/tx` endpoints as Base64 encoded strings in the JSON payload. This isn't ideal as the payload size increase caused by Base64 for larger files can be significant, in addition to the added clientside API complexity. This PR adds supports for multipart form posts to `/tx` where the JSON data (name: `data`) and multiple files can be posted simultaenously (one or more `file` fields). --- PR: #1166 * Attachment model for TxMessage * Don't reassign values, just pass the manager.Messgage * Read attachment info from API; create attachment Header * Refactor tx attachments to use multipart form files. Closes #1166. --- Co-authored-by: MatiSSL <matiss.lidaka@nic.lv> |
||
---|---|---|
.. | ||
manager.go |