-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
3 changed files
with
64 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters