Uploading Multiple Files (MIME Format Multipart)

If you select Multipart in the MIME Format field in the Request Settings area, PCo sends a message to the remote server that contains multiple forms. Each form is represented as an array element. Once the Multipart option has been selected, a fixed set of parameters is displayed on the Request Message Configuration tab.

The structure of the forms is reflected in the parameters that are offered. You can configure these parameters for the request message:

Parameters for Uploading Files
Parameter Name Description

$in[0].FormName

Mandatory string parameter for defining the form name.

$in[0].FilePath

String parameter for defining the absolute path to a file that is to be used as the form content. This parameter cannot be used together with $in[0].Text or $in[0].Content.

$in[0].Text

String parameter for defining the form content. This parameter cannot be used together with $in[0].Content or $in[0].FilePath.

$in[0].Content

Binary parameter for defining the form content if it cannot be represented as a character string. This parameter cannot be used together with $in[0].Text or $in[0].FilePath.

$in[0].ContentType

Optional parameter for specifying the content type for the form. This can be any valid content type, for example, text/plain.

On the Request Message Configuration tab, you can only select one of the alternative parameters $in[0].Text, $in[0].Content, and $in[0].FilePath as the input variable. You can change the names of the proposed input variables.

If you want to upload more than one form, you can extend the root parameter $in and thus add more forms to the array.