I have a workflow I am downloading a file from an S3 resource. It comes back as this object:
{
"data": {
"Metadata": {},
"LastModified": "2024-11-14T18:33:49.000Z",
"ContentLength": 21,
"ContentType": "binary/octet-stream",
"AcceptRanges": "bytes",
"ETag": ""9TESTETAG6"",
"Key": "test/testing/default.txt",
"Body": "H3oiQk44wrdAw7Qlw67DhSvDoHwn",
"IsJson": false
}
}
I have a Webhook return on a 200 returning 'download_file.data' which returns this object:
{
"data": {
"status": 200,
"body": {
"Metadata": {},
"LastModified": "2024-11-14T18:33:49.000Z",
"ContentLength": 21,
"ContentType": "binary/octet-stream",
"AcceptRanges": "bytes",
"ETag": ""9TESTETAG6"",
"Key": "test/testing/default.txt",
"Body": "H3oiQk44wrdAw7Qlw67DhSvDoHwn",
"IsJson": false
}
}
}
This entire workflow is setup as a webhook, so when I call this in Postman, the response I get instead of downloading a text file with the data is a response.json file.
Could you assist with getting this formatted to return the file correctly so the web response recognizes it as an attachment? I didn't see a way to access/modify the response headers to force it