We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Passing multiple files as attachment to a REST API

Received Response
20
Views
7
Comments
edited Aug 16, 2021 2:39AM in Visual Builder 7 comments

Content

Hi,

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?

Thanks,

Guna.

Version

21.2.3.0.0 (210505.1400.40961)
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!