Alex's Notes

Upload Interaction (QTI)

The upload interaction allows the candidate to upload a pre-prepared file representing their response. It must be bound to a response variable with base-type file and single cardinality. The relevant class is:

UploadInteraction

Data Model

Examples

This example illustrates the uploadInteraction. The RESPONSE is declared to be of type file. The candidate is provided with a mechanism to upload their own spreadsheet in response to the task, response processing for file-based questions is out of scope of this specification.

<assessmentItem
    xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2p2.xsd"
    identifier="upload"
    title="Chocolate Factory"
    adaptive="false"
    timeDependent="false"
>
    <responseDeclaration
	identifier="RESPONSE"
	cardinality="single"
	baseType="file"
    />
    <outcomeDeclaration
	identifier="SCORE"
	cardinality="single"
	baseType="float"
    />
    <itemBody>
	<p>
	    A chocolate factory produces several types of chocolate, some of
	    which have nut centres. The chocolates are mixed together and are
	    randomly packed into cartons of ten.
	</p>
	<uploadInteraction responseIdentifier="RESPONSE">
	    <prompt>
		Build a spreadsheet to simulate 50 cartons of chocolates when
		each carton contains 10 chocolates, and when one-seventh of the
		chocolates have nut centres. Your spreadsheet should include 50
		rows representing the 50 cartons, each row containing 10 columns
		to represent the chocolates.
	    </prompt>
	</uploadInteraction>
    </itemBody>
</assessmentItem>