The InboundFile handler is used to send and receive files.
The HTTP posted content is saved directly to the specified file.
Command | Keyword | Value | Developer notes |
|---|---|---|---|
RECEIVE | HANDLER | InboundFile | |
TO | value | Required. File path to receive content. | |
APPEND | *YES | Optional. Append content to existing file. | |
*NO | Default. |
RECEIVE HANDLER(InboundFile) TO(/folder/file.jpeg)
When the SEND command of this content handler is executed the following steps occur:
Command | Keyword | Value | Developer notes |
|---|---|---|---|
SEND | HANDLER | InboundFile | |
STATUS | value | Optional: HTTP status number. | |
MESSAGE | value | Optional: HTTP status message. | |
FILE | value | Required. File path of content. | |
UAPATH | value | Optional. User agent save response path. | |
UAFILE | value | Optional. User agent save response filename. | |
UACACHE | value | Optional. Cache-Control max-age. | |
UADISPOSITION | value | Optional. Content-Disposition filename. | |
ENCODING | Optional. See ENCODING | ||
CONTENT | Optional. See CONTENT. | ||
CHARSET | *YES | Optional. Include charset attribute. | |
*NO | Do not include charset attribute. | ||
*TEXT | Default. Include charset attribute if content is text. |
SEND HANDLER(InboundFile) FILE(/folder/file.pdf)