title: Porting cURL -F into RestSharp
body: <p>I'm trying to upload local file(s) using the 3rd party API (actually Zendesk), could someone please help me understand how to port the example cURL that was provided into RestSharp</p>
  
  <p>cURL example that's provided:</p>
  
  <pre><code>curl https://{subdomain}.zendesk.com/api/v2/help_center/articles/{id}/attachments.json \ -F "inline=true" -F "file=@drawing.png" \ -v -u {email_address}:{password} -X POST
  </code></pre>
  
  <p>I've been trying to add it with AddFile, also as parameter, but I keep running into 500 Internal Server Error.</p>
  
  <p>My code that's trying to accomplish the same thing as above cURL is basically this:</p>
  
  <pre><code>var attachmentRequest = new RestRequest();
  
  var attachmentURL = "api/v2/help_center/articles/" + article.id + "/attachments.json";
  var attachmentPath = articlePath + "\\" + attachment.file_name;
  
  attachmentRequest.Resource = attachmentURL;
  attachmentRequest.Method = Method.POST;
  attachmentRequest.AddParameter("inline", attachment.inline);
  attachmentRequest.AddFile(attachment.file_name, attachmentPath);
  
  var attachmentResponse = client.Execute(attachmentRequest); // returns status code 500
  </code></pre>
  
  <p>Any help is greatly appreciated, I searched through a lot of information about porting these requests, as well as both cURL and RestSharp documentation and I simply cannot figure this one out.</p>
  
  <p><strong>Update Feb 20th:</strong> I still cannot figure this out. In the meantime since I need a solution I'm actually calling the curl executable to accomplish this. Naturally, I'd be extremely grateful if someone had any insight in figuring this out through RestSharp instead.</p>