File Upload

Uploading non-sensitive files can be done using the FileUpload timeline element. For sensitive files, please see SecureFileUpload.

The parameters for FileUpload are:

Name Type Default Values Description
promptText string - - the title shown on the FileUpload element
promptButtonText string - - the label for the file upload call to action
retryButtonText string - - the label for the file replace call to action
confirmationText string - - the label for the file confirmation call to action
confirmButtonText string - - the label for the flow completion call to action
persist boolean true true, false whether the uploaded file should be permanently stored, if set to false any files uploaded will be erased at a later stage
displayUpload boolean true true, false whether the uploaded file should be displayed to the user in the timline after completing the upload

An example of FileUpload markup is:

UploadItem

File upload timeline elements can support up to 2 files per element. Each file is called an UploadItem

The parameters for UploadItem are:

Name Type Default Values Description
label string - - the label for the UploadItem (not shown for single file uploads)
name string - - the identifier with which the file is associated
fileType mime type - - A mime type which lets indicate the kind of file you want uploaded
interactionType string utterance utterance, event
  • Event fires a markup interaction with the option selected
  • Utterance adds a message to the timeline with the option selected