I have created a flow for retrieving html document along with metadata and some pdf attachment from a third party and then uploading the same to another third party. Data retrieval part is working fine but while uploading we are facing issues. For all this we are using HTTP connector.
Issue: For file upload we are using multipart, when whole body syntax is added directly to the HTTP body section it is working fine and the file gets uploaded, but when we try to create a variable and added all the multipart JSON syntax to the variable and used this variable reference in the HTTP request then we are getting 415 error.
There are multiple attachments for each document for which we need to apply a loop and append all the content to the variable and then pass it to the HTTP request. Seems like it could be due to some additional escape chars which could be added to the JSON and in HTTP request it is considered as invalid JSON, also replacing the escape charter is not making the JSON valid.
Kindly suggest as this is very crucial and we are very close to the deadline.
Thanks in advance,
Aakash Rajput