Objective - Learn how to send file objects via the HTTP Client Connector
Overview - There are two options when it comes to sending files via the HTTP Client Connector,
- form-data
- binary
Sending a file using the form-data option
- Add the HTTP Client connector to the workflow and set the method to POST
- Set the Body Type to form-data
- Use the connector snake or JSON path to link the file object to the form-data parameter
Sending a file using the binary option
Using the binary body type requires the use of the File Helper connector to add the 'expires' parameter to the file object
- Add the File Helper connector before your HTTP Client connector
- Set the File Helper operation to 'Create file from content'
- Link the Content parameter to the file object
- Add the HTTP Client connector to the workflow and set the method to POST
- Set the Body Type to binary
- Use the connector snake or JSON path to link the file object to the binary parameter
Comments
0 comments
Please sign in to leave a comment.