Create a FORM with a file question

While composing a document, the user can upload a file using a file question. The ANSWER to the question refers to the uploaded file on the server. For example, the answer can be used to include the file in the document.

File questions are not supported in the dynamic Forms that can be maintained as part of the content in KCM Designer. They have to be part of a static Form in a Master Template instead. The following is an example of a simple static Form that contains a single file question.

TEXT f
FORM "File upload"
  QUESTION "Select a file"
    ID("filequestion1")
    FILE
    ERRORCONDITION f=""
    MESSAGE "Please provide a file"
  ANSWER f

KCM ComposerUI does not enforce any restrictions on file type. The maximum file size is currently 20 MB.