Passing multiple files as attachment to a REST API
We have OIC REST API with content type as "Multipart/form-data", which accepts multiple files as attachment. It works fine, when we test the integration in OIC. While calling the API from VBCS application, it works fine if we pass a single file. When we try to pass multiple files, we are getting http 415.
We have the file data in an array, similar to the array in oj-file-picker. Can someone throw some light on, how to map this array of File objects to the attachments in the REST API?