Skip to content

File Upload

The File Upload element lets users attach one or more files to a form submission. Files can be uploaded immediately on selection or held until the form is submitted.

Properties

PropertyTypeDescription
labelstringField label
acceptstringAccepted file types as a MIME type pattern — see below
multiplebooleanAllow selecting more than one file at a time
maxFilesnumberMaximum number of files the user may attach
maxFileSizenumber (bytes)Per-file size limit
maxTotalSizenumber (bytes)Combined size limit across all attached files
uploadModeimmediate / deferredimmediate — files upload as soon as they are selected; deferred — files upload when the form is submitted

Plus shared layout properties.

Accept patterns

The accept field follows the same syntax as the HTML accept attribute:

PatternAccepts
*Any file type
image/*All image formats
application/pdfPDF files only
image/*,application/pdfImages and PDFs
.docx,.xlsxSpecific file extensions

WARNING

The platform enforces a 100 MB maximum upload size. maxTotalSize cannot exceed this value. See Conventions › Uploads.


See also: Elements overview

S-Launch