Overview
As a workflow developer you can build a workflow with an Http Consumer activity that includes a MultipartFormDataContent component in the request payload.
Message structure
NOTE
In the message structure below, the items highlighted in Red are specific to the MultipartFormDataContent file upload component. All other properties are standard HttpRequestMessage members.
Send
HttpRequestMessage message
string RequestUri = ToString(JsonValue({Get EaaS Config}.ReturnValue).uploadUrl.Value)
HttpMethod(PostHttpMethod) Method
HttpContent(MultipartFormDataContent) Content
string Boundary = null
List Body
HttpContent_0
byte[] Body = {Input}.In["body"].DynoTestFile == null ? mwf.Extensions["CaseAttachments"].Items.Where(FileName == wf.variables["FileName"]).First().Content : {Input}.In["body"].DynoTestFile.FileBytes
HttpContentHeaders Headers
List Allow = null
ContentDispositionHeaderValue ContentDisposition
DateTime? CreationDate = null
string DispositionType = "form-data"
string FileName = wf.Variables["fileName"]
string FileNameStar = wf.Variables["fileName"]
DateTime? ModificationDate = null
string Name = "file"
DateTime? ReadDate = null
long? Size = null
List Parameters = null
List ContentEncoding = null
List ContentLanguage = null
long? ContentLength = null
string ContentLocation = null
byte[] ContentMD5 = null
ContentRangeHeaderValue ContentRange = null
MediaTypeHeaderValue ContentType
string MediaType = "application/pdf"
string CharSet = null
List Parameters = null
List CustomHeaders = null
HttpContentHeaders Headers = null
string Version = null
HttpRequestHeaders Headers
List Accept = null
List AcceptCharset = null
List AcceptEncoding = null
List AcceptLanguage = null
AuthenticationHeaderValue Authorization = null
CacheControlHeaderValue CacheControl = null
List Connection = null
bool? ConnectionClose = null
List Cookies = null
DateTime? Date = null
List Expect = null
bool? ExpectContinue = null
string From = null
string Host = null
List IfMatch = null
DateTime? IfModifiedSince = null
List IfNoneMatch = null
RangeConditionHeaderValue IfRange = null
DateTime? IfUnmodifiedSince = null
int? MaxForwards = null
List Pragma = null
AuthenticationHeaderValue ProxyAuthorization = null
RangeHeaderValue Range = null
string Referrer = null
List TE = null
List Trailer = null
List TransferEncoding = null
bool? TransferEncodingChunked = null
List Upgrade = null
List UserAgent = null
List Via = null
List Warning = null
List CustomHeaders
HttpHeader_0
string Name = "Authorization"
string Value = "Bearer TSerG/****C+c="
HttpHeader_1
string Name = "accept"
string Value = "application/json"
SessionOptions SessionOptions = null