HttpFileUploadValve

Valve to upload of files using form-data (multipart). Primary use is sending signed pdf to SWF.

The content of the item property to upload should be base64 encoded.

Properties

Name Description Default value Mandatory Supports property expansion
url The URL to upload to Yes Yes
content The item property with the content to upload Yes Yes
contentType Flag indicating if resource is or should be treated as binary application/octet-stream No Yes
filename Name of file unknown No Yes

Example Configuration

{
    "name": "HttpFileUploadValve",
    "enabled": "true",
    "config": {
        "url": "http://swfserver:8081/api/document_signing/orders/{{item.orderId}}/document",
        "content": "{{item.document}}"
    }
}

In the example above {{item.orderId}} will be extracted from the request.

Requirements

The content of the item property to upload should be base64 encoded.