Hi All,
I am having a bit of trouble with sending a multipart form through a http request. I have been able to get it to succussed but the problem i have now is that i need to format of the uploaded file to to look something like this with an array called source:
{"source":[
{"k": "File name",
"v": "Some Value"},
{"k": "document size",
"v": "Some Other value"}]}
currently this is my request and i'm not sure how to change:

{
"$content-type": "multipart/form-data",
"$multipart": [
{
"headers": {
"Content-Disposition": "form-data; name=\"country\""
},
"body": "UK"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"department\""
},
"body": "finance"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"source_url\""
},
"body": "@{items('Apply_to_each')?['LinkToItem']}"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"confidentiality\""
},
"body": "Private"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"uploaded_file\"; filename=\"@{items('Apply_to_each')?['{FilenameWithExtension}']}\""
},
"body": @{outputs('FileContent')}
}
]
}
Any help is appreciated. Thank you in advance