A user has uploaded a file to an LMS or an e-learning platform EXCEPTED video
, audio
or document
files.
For these types of file, the corresponding statements templates should be used (uploaded a video, uploaded an audio or uploaded a document)
{
"actor": {
"account": {
"name": "john",
"homePage": "http://gaiax.org"
}
},
"verb": {
"id": "https://w3id.org/xapi/netc/verbs/uploaded"
},
"object": {
"id": "http://gaiax.org/xapi/activities/ba297687-b1aa-4477-9efd-a782c8fdb90a",
"definition": {
"type": "http://activitystrea.ms/file",
"name": {
"en": "Test Course"
},
"extensions": {
"https://w3id.org/xapi/acrossx/extensions/type": "application/pdf"
}
}
},
"context": {
"contextActivities": {
"category": [
{
"id": "https://w3id.org/xapi/lms",
"definition": {
"type": "http://adlnet.gov/expapi/activities/profile"
}
}
]
},
"extensions": {
"https://w3id.org/xapi/cmi5/context/extensions/sessionid": "53ff781a-3c52-11ee-be56-0242ac120002"
},
},
"timestamp": "2016-06-09T15:34:26.887Z"
}
Property | Value |
---|---|
$.verb.id |
MUST be https://w3id.org/xapi/netc/verbs/uploaded |
$.object.definition.type |
MUST be http://activitystrea.ms/file |
$.object.definition.extensions['https://w3id.org/xapi/acrossx/extensions/type']
: RECOMMENDED, MUST specify the type of the uploaded file.video
,document
andaudio
are excluded.$.context.contextActivities.category
: INCLUDED, MUST contain an activity with thehttps://w3id.org/xapi/lms
id.$.context.extensions['https://w3id.org/xapi/cmi5/context/extensions/sessionid']
: RECOMMENDED, UUID, MUST contain the ID of the active session where the file was downloaded.$.timestamp
: INCLUDED.