listmonk/cmd
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
..
admin.go Refactore all CRUD functions to a new core package. 2022-05-03 10:50:29 +05:30
archive.go Use send_at date for scheduled campaigns in RSS feed. Closes #1149. 2023-01-21 12:43:30 +05:30
bounce.go Integrate paginator library in place of custom pagination function. 2022-11-10 23:30:50 +05:30
campaigns.go Integrate paginator library in place of custom pagination function. 2022-11-10 23:30:50 +05:30
handlers.go Add public archive on/off toggle to settings. 2022-11-10 23:30:53 +05:30
i18n.go Upgrade labstack/echo webserver to major version v4. 2021-12-09 20:51:07 +05:30
import.go Fix typos 2022-02-13 08:54:39 -08:00
init.go Add hCaptcha.com support to public subscription form. (#1152) 2023-01-23 21:50:10 +05:30
install.go Add a default public archive template. 2022-12-25 16:07:12 +05:30
lists.go Fix broken single list fetch API. 2022-11-22 23:11:20 +05:30
main.go Add hCaptcha.com support to public subscription form. (#1152) 2023-01-23 21:50:10 +05:30
maintenance.go Add maintenance options. 2022-09-03 14:58:25 +05:30
manager_store.go WIP: Add support for publishing campaigns to publish archives. 2022-11-10 23:30:11 +05:30
media.go Add support for SVG files to media. Closes #1217. 2023-03-19 13:58:41 +05:30
notifications.go Add support for plaintext system e-mail templates. 2021-10-28 20:09:06 +05:30
public.go Hide private lists from prefs manage page. Closes #1200. 2023-02-26 12:36:46 +05:30
settings.go Add hCaptcha.com support to public subscription form. (#1152) 2023-01-23 21:50:10 +05:30
subscribers.go Integrate paginator library in place of custom pagination function. 2022-11-10 23:30:50 +05:30
templates.go Disable template type updation after creation to prevent breaking of campaign relations. 2022-07-09 10:36:12 +05:30
tx.go Add support for file attachments in the transactional (tx) API. (#1243) 2023-03-19 15:50:44 +05:30
updates.go Stop checking for updates on boot. 2021-05-23 21:08:32 +05:30
upgrade.go Add hCaptcha.com support to public subscription form. (#1152) 2023-01-23 21:50:10 +05:30
utils.go Refactore all CRUD functions to a new core package. 2022-05-03 10:50:29 +05:30