I would like to pass a file object (input file) from app.js to server method - SMI
Can I pass using FormData or need to use file reader like method and
how to access that file in server.js file
The intention is to attach file in post method of third party api call that expects multipart/form-data
both SMI and request API does not support Multipart form data, so you cannot send the data from app.js through SMI or send the data from server.js to the third party API, I also have a question
why does the data need to go from server.js to the third party API, why not use ajax or fetch and send the data directly to the third party from the front end? if your concern is CORS issue, please refer this topic