How to upload a multipart file from an external file system
The HTTP Client Snap supports uploading of a multipart file from any external file system.
Steps
- Configure either of the following upstream Snaps for the
HTTP Client
Snap:
- S3 Download Snap for S3 object.
- File Reader Snap for the rest of the protocols.
- Set the Input view of the HTTP Client Snap to Binary.
- Select multipart for HTTP entity.
- In the Multipart form field set, click + to enter a row of File Type as follows:
| Type | Key | Value | Content type |
|---|---|---|---|
| File | file |
$['content-location'] expression-enabled) |
$['content-type'] (expression-enabled) |
The HTTP Client Snap copies the binary input data into a local temp file, and the value of the Value property is replaced with the temp file path (file://)