Skip to main content
Menu
On this page

File upload

Collect files into Google Drive, Box, or S3-compatible storage connected by the workspace.

Rendered by the SDK
@usefillo/react
Uploads are unavailable in this render-only preview
File transfer stays disabled because this docs preview has no submission target.

The file-upload field collects one or more files into storage your workspace has connected, and stores file references with the response.

Options

OptionTypeDefaultBehavior
maxFilesnumber1Caps how many files the answer may contain
maxFileSizeMbnumber500Caps each file before upload
acceptstring[]any typeUses MIME patterns or extensions such as image/* and .pdf

The stored value is an array of { fileId, name, size, mime, url? } references. Fillo verifies the upload completed before accepting a reference in a response.

Add a file-upload field

In the dashboard, connect Google Drive, Box, or S3/R2 under Settings > Connections before publishing a form that contains the field. Then select Add block, choose File upload, and set the count, size, and accepted types.

ts
const resumeField = {
  id: "resume",
  kind: "file_upload",
  label: "Resume",
  required: true,
  maxFiles: 1,
  maxFileSizeMb: 20,
  accept: [".pdf", ".doc", ".docx"],
} as const;

URL prefill doesn't accept file values. Use the SDK upload protocol or the built-in renderer.

Updated

Was this page helpful?