Type key: file_upload. Renders a drop zone where respondents attach one or more files. In the editor this is the File Upload block.
A question: the question rules apply, and it can sit in a layout row column.
Meta fields
Section titled “Meta fields”The meta fields of this node type are listed in the request body of Replace the draft document, under pages › nodes, in the file_upload tab.
Example
Section titled “Example”{ "public_id": "nCv1", "sort_order": 1, "type": "file_upload", "meta": { "question": "<span>Upload your talk slides</span>", "file_upload_accepted_categories": [ "document" ], "file_upload_max_files": 1, "validation": { "required": false } }}Defaults and rules
Section titled “Defaults and rules”file_upload_accepted_categorieslists any ofimage,video,audio,document, andarchive. Omitted ornull, the question accepts every category.file_upload_max_filesdefaults to1and accepts1to20;nullallows the maximum of 20 files per answer.file_upload_max_file_size_mbcaps each file in megabytes. Omitted ornull, only the plan’s file size limit applies; a value above that limit does not raise it.- The node has no
default_value.