Sending HTTP POST Multipart/form-data field using RestSharp
问题 I'm having issues using RestSharp for a REST API I need to use for a project I'm working on. The request I need to issue is in three parts: A header API key, a file to upload, and a bunch of data in JSON format. The API requires that the data part be sent using a form field name of "data". For some reason this is causing issues since it's naming the field "data" within the body of the request. The code I have as is as follows: var request = new RestRequest(UPLOAD_DOC_URLSEGMENT, Method.POST)