listmonk/models
Kailash Nadh 55f7eca2e8
Add support for file attachments in the transactional (tx) API. (#1243)
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>
2023-03-19 15:50:44 +05:30
..
models.go Add support for file attachments in the transactional (tx) API. (#1243) 2023-03-19 15:50:44 +05:30
queries.go WIP: Add support for publishing campaigns to publish archives. 2022-11-10 23:30:11 +05:30
settings.go Add hCaptcha.com support to public subscription form. (#1152) 2023-01-23 21:50:10 +05:30