I have this request in HTTP/1.1
syntax where it is a multipart/form-data type.
POST /documents/facade/complete HTTP/1.1
Content-Type: multipart/form-data; boundary=X-BOUNDARY
Authorization: Bearer ...
Host: localhost
Content-Length: 1072
--X-BOUNDARY
Content-Disposition: form-data; name="title"
Contract
--X-BOUNDARY
Content-Disposition: form-data; name="files"; filename="SAMPLE1.PDF"
Content-Type: application/pdf
--X-BOUNDARY
Content-Disposition: form-data; name="files"; filename="SAMPLE2.PDF"
Content-Type: application/pdf
--X-BOUNDARY
Content-Disposition: form-data; name="signatories[0][name]"
Signatorie 1
--X-BOUNDARY
Content-Disposition: form-data; name="signatories[0][email]"
signatorie1@example.com
--X-BOUNDARY
Content-Disposition: form-data; name="signatories[0][signatureType]"
DEFAULT
--X-BOUNDARY
Content-Disposition: form-data; name="signatories[1][name]"
Signatorie 2
--X-BOUNDARY
Content-Disposition: form-data; name="signatories[1][email]"
signatorie2@example.com
--X-BOUNDARY
Content-Disposition: form-data; name="signatories[1][signatureType]"
DEFAULT
--X-BOUNDARY--
The files
can repeat, allowing sending more than one file.
But for now, I couldn’t understand how is the syntax for writing a module in a Custom App that allows files
to repeat.
I had reached out to the support, they suggested including different names like files[0]
, files[1]
etc. But the API doesn’t accept that, it has to be files
.
Any ideas to solve this problem?
Support Tickets: #656808 #674596