Skip to content

File Upload Question Schema Properties

A file upload question that supports single or multiple file attachments.

Element type: file Key properties: 16

  • Aliases: upload, attachment, document upload, image upload.
  • Use when: respondents upload one or more files.
  • Recommended properties: type, name, title, acceptedTypes, allowMultiple, maxSize, isRequired.
{ "type": "file", "name": "resume", "title": "Upload your resume", "acceptedTypes": ".pdf,.doc,.docx", "allowMultiple": false }

  • Type: string
  • Default:

An accept attribute value for the underlying element.

  • Type: set
  • Default:
  • Allowed values: image, video, audio, document, archive, custom

An array of predefined file category names used to control which files users can upload.

  • Type: boolean
  • Default:

Specifies whether users can upload multiple files.

  • Type: number
  • Default: 1000

Maximum number of files a user can upload. Applies only if allowMultiple is true.

  • Type: number
  • Default: 0

Maximum allowed file size, measured in bytes.

  • Type: string
  • Default: "file"
  • Allowed values: file, camera, file-camera

Specifies the source of uploaded files.

  • Type: boolean
  • Default: true

Specifies whether to show a preview of image files.

  • Type: boolean
  • Default: true

Specifies whether respondents can mark up image uploads before submitting them. When enabled, image files open a markup editor with pen, text, rectangle, circle, arrow, color, thickness, zoom, undo, redo, move, resize, and delete controls before upload.

  • Type: string
  • Default:

The height of the following images:

  • Type: string
  • Default:

The width of the following images:

  • Type: text
  • Default:
  • Localizable: Yes

A placeholder text displayed when the File Upload question doesn’t contain any files to upload. Applies only when the sourceType value is “file”.

  • Type: text
  • Default:
  • Localizable: Yes

A placeholder text displayed when the File Upload question doesn’t contain any photos to upload. Applies only when the sourceType value is “camera”.

  • Type: text
  • Default:
  • Localizable: Yes

A placeholder text displayed when the File Upload question doesn’t contain any files or photos to upload. Applies only when sourceType value is “file-camera”.

  • Type: boolean
  • Default:

Specifies whether users should confirm file deletion.

  • Type: boolean
  • Default: true

Specifies whether to store file or signature content as text in SurveyModel’s data property.

  • Type: boolean
  • Default: false

Enable this property if you want to wait until files are uploaded to complete the survey.

This page lists only properties that are specific to this element type or especially important for generation.

  • Use Shared Question Properties for common fields such as name, title, description, isRequired, requiredIf, visibleIf, enableIf, readOnly, defaultValue, validators, width, and layout options.