QuestionFileModel
A class that describes the File Upload question type.
Properties
Methods
Events
An accept attribute value for the underlying <input>
element.
- Type:
- string writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
Specifies whether to show a preview of image files.
- Type:
- boolean writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Default value:
- True
- Implemented in:
- QuestionFileModel
Specifies whether users can upload multiple files.
Default value: false
- Type:
- boolean writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
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:
- string writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
- See also:
- filePlaceholder * , photoPlaceholder
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:
- string writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
- See also:
- photoPlaceholder * , fileOrPhotoPlaceholder
The image height.
- Type:
- string writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
The image width.
- Type:
- string writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
Loads multiple files into the question.
- Type:
- (files: any[]) => void
- Parameters:
- Implemented in:
- QuestionFileModel
Maximum allowed file size, measured in bytes.
Default value: 0 (unlimited)
- Type:
- number writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
Specifies whether users should confirm file deletion.
Default value: false
- Type:
- boolean writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
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:
- string writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Implemented in:
- QuestionFileModel
- See also:
- filePlaceholder * , fileOrPhotoPlaceholder
Removes a file with a specified name.
- Type:
- (name: string) => void
- Parameters:
-
name, type: string
- Implemented in:
- QuestionFileModel
Disable this property only to implement a custom preview.
- Type:
- boolean writable
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Default value:
- True
- Implemented in:
- QuestionFileModel
- See also:
- allowImagesPreview
Specifies the source of uploaded files.
Possible values:
"file"
(default) - Allows respondents to select a local file."camera"
- Allows respondents to capture and upload a photo."file-camera"
- Allows respondents to select a local file or capture a photo.
- Type:
- string readonly
This property is stored in the survey JSON definition and can be edited in the Survey Creator.
- Default value:
- file
- Accepted values:
- file , camera , file-camera
- Implemented in:
- QuestionFileModel
- See also:
- filePlaceholder * , photoPlaceholder * , fileOrPhotoPlaceholder
Copyright © 2023 Devsoft Baltic OÜ. All rights reserved.