Send multipart form data using request API in client side app

I am trying to send a multipart form data request to a third part API using client side request method in my sdk, but request is not taking formdata as an object. when I stringify it, it sends empty data.
Is there any example of how to send this? Thanks.

Hey Yusra,

Welcome to the community! :tada:

We do not support sending form-data in the client request method. So if you need to send form-data then you will have to use an external node package like axios to make the call.

Also, if you have a secure iparam whose value you are sending through this call then you will need to make use of our SMI (Server Method Invocation) feature to fetch the value before you send it via axios or any other module.

Hope this helps.

3 Likes