You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At Monite, we provide an ability for customers to upload a binary file (e.g. a payable). Currently there is no information about this. Moreover, it's possible, that we should response with a binary data, along with the text.
However, why use JSON instead of multipart/form-data for file + data uploads? JSON payload would be 33% bigger due to the Base64 encoding. Multipart can contain both binary files and JSON data in separate parts.
Something to discuss and decide
The text was updated successfully, but these errors were encountered:
At Monite, we provide an ability for customers to upload a binary file (e.g. a payable). Currently there is no information about this. Moreover, it's possible, that we should response with a binary data, along with the text.
Proposed solution
Response can be mixed, for example
Same to a payload. Instead of multipart, simple json:
However, why use JSON instead of
multipart/form-data
for file + data uploads? JSON payload would be 33% bigger due to the Base64 encoding. Multipart can contain both binary files and JSON data in separate parts.Something to discuss and decide
The text was updated successfully, but these errors were encountered: