Import Content Into a Document

The ImportFile task imports a file and adds its content to the document being processed. CFS does not extract sub files from the file.

The ImportFile task can be configured as a Pre or Post task. When you create the task, specify the name of a document field that contains the path or URL of the file to import, for example:

Pre0=ImportFile:fieldname
Post0=ImportFile:fieldname

where fieldname is the name of the document field.

Alternatively, specify the name of a section in the configuration file that contains the settings for the task:

[ImportTasks]
Post0=ImportFile:MySettings

[MySettings]
Fieldname=field_containing_file_path_or_url
ProxyHost=10.0.0.1
ProxyPort=8080
SSLMethod=TLSV1

If the field contains a URL, CFS downloads the file and adds its content to the document.