How to submit multiple files with rest api

Hi,

I have a problem when I try to save multiple files in form. I send the id of upload input filed and the value. But I can’t set multiple files because the value accept only a String. I can only send One file.
Is there another method ? I have used this Json Data Format
{
“action”: “string”,
“processDefinitionId”: “string”,
“taskId”: “string”,
“businessKey”: “string”,
“properties”: [
{
“id”: “room”,
“name”: “Room”,
“type”: “string”,
“value”: “string”,
“readable”: true,
“writable”: true,
“required”: true,
“datePattern”: “string”,
“enumValues”: [
{
“id”: “normal”,
“name”: “Normal bed”
}
]
}
]
}

Can you share your form? Also, where are you uploading that file? I don’t see anything in the json above?

Hello @joram,
Thank you for replying

This is my form I use multiple file input (upload) formModel
I have use the Data model example when I submit my form:
{
“action”: “string”,
“processDefinitionId”: “string”,
“taskId”: “string”,
“businessKey”: “string”,
“properties”: [
{
“id”: “upload”,
“value”: “idOfContentItem”,
“datePattern”: “string”
}
]
}
in the properties I set :[id:‘upload’,“value”:“idOfContentItem”] but succeeded to save only one file because the attribute “value” accept only a string, I can’t set multiple id of content Item in value