Menu

The File Upload question is used when the current question has a type prop of file.

This question allows the user to upload a file as an answer.

See questions object to learn more about question types the library supports.

The behavior of this question can be defined with the following props.

Prop Description Type
text (required) The question heading. String
description The question description. String
types The types of files you want to accept as an answer. Don’t provide this prop if you accept any file type. Array
required Whether the question can be skipped. Must be set to true if you want Asker to enforce the types of files you accept. Boolean
next Reference to the next question. String
{
    type: 'file',
    text:`Multi-choice test que.`,
    types:['jpg'], // **Must be lowercase letters!!**
    required: true,
}

Questions Object

Text Input Question

Paragraph Question

Single Choice Question

Multi-choice Question

Info Screen

CSS Themes