FTP Connector Guide > Process Objects with FTP Connector > FTP Monitor Process Objects
  

FTP Monitor Process Objects

When you use the FTP Monitor event source to access files on a remote FTP server, you generate one of two process objects:
  1. 1FileContent. Includes the file's contents in addition to the file metadata. If you choose the option to ignore content format, only the FileInformation event object is generated.
  2. 2FileInformation. Similar to the FileInformation object generated by other event sources, this contains only the file metadata.
For example, the FileContent object contains a <fileInfo> element followed by the content. The content is represented as shown, based on the content type:

<FileContent>

<!-- remote file information -->
<fileInfo>
<host>127.0.0.1</host>
<lastModified>2015-09-21T10:05:20Z</lastModified>
<dir>documents/json</dir>
<name>users</name>
<path>documents/json/users.json</path>
<fullName>users.json</fullName>
<ext>json</ext>
<size>380</size>
</fileInfo>

<!-- if Content Format is PlainText, content is a string field -->
<content>File content string</content>

<!-- or if Content Format is Binary, content is a Base64-encoded string field -->
<content>dGVzdCBzdHJpbmc=</content>

<!-- or if Content Format is XML or JSON, content is a list of one or more process objects -->
<content>
<lastName>Smith</lastName>
<firstName>Bob</firstName>
<phone>111122-222</phone>
</content>
<content>
<lastName>Smith2</lastName>
<firstName>Bob2</firstName>
<phone>111122-222</phone>
</content>

<!-- if Content Format is Attachment, content is an attachment field -->
<attachment>cid:29cde59c-e85b-41e0-834c-22bbed5a5b9a</attachment>

</FileContent>
If the Content Format is Ignore, only the FileInformation object is generated. See File Information Process Objects for more information.