Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

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!