Skip to main content

FILE_UPLOAD

Opens a file upload dialog (modal) and stores selected file(s) into the flow context. Supports output mapping via the outputs config or default file output.

Images

step_FILE_UPLOAD.png

At a glance

  • Category UI
  • Aliases USER_FILE_UPLOAD
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
promptTextPrompt text shown in the upload dialog.NonefalsetrueNoneNone
acceptComma-separated list of accepted MIME types for upload (e.g. "image/png,application/pdf").NonefalsefalseNoneNone
fileTypesArray of accepted MIME types for the upload (e.g. ["audio/mp3","audio/wav"]).NonefalsefalseNoneNone
maxSizeMaximum file size allowed in bytes.NonefalsefalseNoneNone

Outputs

TypeDescriptionOptional
fileDefault output: the uploaded File object (when no explicit outputs are configured).false
textIf configured, file content can be read and stored as text in the configured output name.true
arrayBufferIf configured, file content can be read as an ArrayBuffer into the configured output name.true

Examples

Upload a single file (default behavior)

- step: FILE_UPLOAD
promptText: "Please upload your document"

Upload and map outputs

- step: FILE_UPLOAD
promptText: "Upload an audio file"
outputs:
- type: file
name: uploadedFile
- type: text
name: fileText

See Also

General Resources: