phani
10 years agoAdvisor
how to read/create FormData object in FreeMarker?
Hi,
We are using endpoints to connect with thirdparty API by using http.client FreeMarker Objects.
For one of the third party POST api call we have to send the multipart/form-data request, for that we have to build the FormData object.
In Javascript we can achieve this by using FormData.
E.X.: var data = new FormData();
data.append("content","<p>Hello World</p>");
How can we achieve this using FreeMarker?
Your help could be highly appreciated.
Thanks & Regards,
Phani