How to add JSON and file in multipart/form-data body to a POST API request?

maybethe discussion below will help: