Open topic with navigation

# 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.

© Copyright 2018 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm