Great news that file could be now send in connector function input!
I made some test with echo api with a pdf document, I see that “files” body-part are sending with:
“name”: “MyFile”
“fileName”: “MyFile”
“Content-Disposition”:“form-data; name=“MyFile”; filename=“MyFile””
“Content-Type”: string"application/octet-stream"
With this body, the fileName with extension “myfile.pdf” is not pass and Content-Type is not pdf. Most of target system will not able properly digest this body.
I have made same remark on “image” input: https://community.tulip.co/t/connector-image-input-file-need-the-correct-type-and-file-name/16298.
In Postman, testing a POST multi-part with a file input give me a body:
name: Myfile,
fileName: MyFile.pdf,
Content-Disposition: form-data; name=\Myfile; filename=\MyFile.pdf,|
Content-Type: application/pdf