file
Sending files using webhooks is compatible with using Content-Type: multipart/form-data
header only. You can send up to 10 files in same request. Notice that you can't send nested parameters using form like embeds
. Instead of that put json of message as value of payload_json
parameter.
Don't forget to add unique names to name fields when adding images. Otherwise only one of file with same names will be sent.
Example: