Add Case Attachments
If any file was not successful than the ErrorCode in OutputParms will be "0409".
A row is returned for each file uploaded. If the row has an ErrorCode of "0500" then the ErrorMessage will indicate why it did not upload the file.
Type | Description |
---|---|
System.String | Case Year |
System.String | Case Number |
POST http://localhost/FusionServices/v3/Naviline/CodeEnforcement/CaseAttachment/14/408
using System.Net;
string uri = "http://localhost/FusionServices/v3/Naviline/CodeEnforcement/CaseAttachment/14/408";
System.Collections.Specialized.NameValueCollection postParms =
new System.Collections.Specialized.NameValueCollection();
postParms.Add("caseYear",System.Web.HttpUtility.UrlEncode("14"));
postParms.Add("caseNumber",System.Web.HttpUtility.UrlEncode("408"));
string filename = "C:\Temp\file_5.txt";
using (WebClient req = new WebClient())
{
byte[] responseBytes = wc.UploadFile(new Uri(uri), filename);
string stringResult = Encoding.UTF8.GetString(responseBytes);
// TODO
}