1. Fields
  2. File Field

Fields

File Field

The File Field allows for uploading one or more files.

Basic usage

Adds a file field to the fields of an action.

loading...

Result

The field will be displayed as a file selecter field in the form, as below: Preview of a file field in a form

The resultant data will be available in the stubpost.data as:

loading...

This can be substituted with eg. ~~stubpost.data.supporting_documents where required. Since the value is an array, you can access the first file's filename with ~~stubpost.data.supporting_documents[0].filename.

Parameters

See fields for common parameters.

params.max_files

optional
int

The maximum number of files that can be uploaded.