I am trying to invoke an API which accepts request with form-data parameters, one of the parameter is a file , which can be of any type(.pdf/.jpg/.doc). When I try to pass the path of the file as value in parameters, I get an error from the API - the request was rejected because no multipart boundary was found.
When I try to send the file as an attachment , the file is not received in the expected format, instead it is received as application/octet-stream.
Request to please suggest options to send the file using the HTTP request acctivity.