File Question
A question that asks the user to upload a file.
Options
- question |
(string|node)
: the question displayed at the top of the file question component. Default:''
. - hintPlacement |
string
: placement of the hints (eithertop
,left
,right
, orbottom
). Default:'bottom'
. - hints |
array<(string|node)>
: hints providing guidance on how to answer the question. Default:[]
. - feedback |
boolean
: controls whether to display feedback buttons. Default:true
. - chat |
boolean
: controls whether the element should have an integrated chat. Default:false
. - accept |
string
: comma-separated list of unique file identifiers that are accepted by the component (e.g., 'image/', '.pdf' or 'audio/'). Default:'*/*'
. - until |
Date
: time until students should be allowed to submit answers. Default:none
. - points |
number
: maximum number of points awarded in grading. Default:10
. - className |
string
: class name. Default:''
. - style |
object
: CSS inline styles. Default:{}
. - onChange |
function
: callback to invoke upon receiving a file. Default:onChange() {}
.
Examples
- Minimal
- Only PDFs
Live Editor
Result
ReferenceError: Provider is not defined