I have a Mule 4 application that receives a POST message with a form-data BODY, which is a path to a csv file.
Once the message is ingested and I try and read the payload all I get is the filepath and not the file contents.
I have tried many approaches including following these instructions here: https://dzone.com/articles/file-attachment-handling-in-mule-4-use-of-multi-pa but all I get are errors or the attachment name.
One specific example of what I have tried is this
payload.parts.'filename'.content
And I get the following output
~/Downloads/WithOnlyHouseBill.OUT
(This is the path to the file)
Please advise how I can read the actual file contents?
Thank you