Open
Description
Based on superfaceai/station#242
Mailgun in particular expects email attachments to be submitted under attachment
fields in multipart/form-data
. However, we don't allow duplicated keys to be sent in body, because it is treated as a JS object.
Possible workaround would be to detect array in value when constructing the FormData object, and append each value individually.
Lines 192 to 194 in 1f03560
This makes sense because there isn't any official way to serialize array values in FormData.
Therefore the following Comlink:
body {
attachment = [bufferA, bufferB]
}
Results in:
attachment=bufferA
attachment=bufferB