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

  1. Configure either of the following upstream Snaps for the HTTP Client Snap:
  2. Set the Input view of the HTTP Client Snap to Binary.
  3. Select multipart for HTTP entity.
  4. 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://)