Hi. I managed to solve the problem using the js below. In my circumstance I was trying to transfer a very simple csv file with a single column with column header that I had already exported to the Adobe server in the previous step.
logInfo("File name is: " + vars.filename)
memBuf = new MemoryBuffer()
memBuf.load(vars.filename)
data = memBuf.toString()
logInfo("Size is " + memBuf.size)
boundary = "nVenJ7H4puv"
body = "--" + boundary + '\r\n'
body = body + "Content-Disposition: form-data; name='upFile'; \r\n"
body = body + "Content-Type: text/csv\r\n\r\n" //two carriage returns required before adding the data
body = body + data + '\r\n'
body = body + "--" + boundary + "--\r\n"
url ="https://<url of site> "
var http=new HttpClientRequest(url);
http.header ["Content-Type"] = "multipart/form-data; boundary=" + boundary;
http.header ["Accept"] = "*/*";
http.header ["Authorization"] = "whatever";
http.method = "POST" ;
http.body = body;
http.execute();
var result = http.response.body.toString();
logInfo("Result String: "+result);
var responseCode = http.response.code
logInfo("Response code is: "+ responseCode)