Sending a list of FileDocuments via REST POST using multipart/form-data

0
I'm trying to send multiple files to the following endpoint: https://api.arkly.io/docs#/arkly/create_transaction_create_transaction__post   This endpoint accepts a wallet (FileDocument) and an array of files and expects multipart/form-data. I can send a single file by adding a REST Call action and configuring the keys but when I try to send a list of FileDocuments Mendix indicates this is not accepted. How do you (natively) send multiple files via multipart/form-data?
asked
2 answers
1

Rest multipart cannot take list of files. 

You can do either of the below. I would recommend the first solution , second solution is a dirty way of doing and it is not scalable. 

Solution 1- 

Merge all the files you want to send and send it as a single file. 

Solution 2 - 

Use different attributes for each file. 

 

 

answered
0

Anyone who is running into this same issue please upvote the idea posted by Dorus:

https://community.mendix.com/link/space/integrations/ideas/4133 

answered