You create an asset policy file to provide details of the assets used in your course. Assets can include image files, textbooks, handouts, and supporting JavaScript files.
You must enter policy details for each asset you add to the static
directory. For more information, see Course Assets.
You define policies for your assets in the assets.json file.
Save the assets.json file in the policy directory. You use one
assets.json file for all of the courses you might have in your directory
structure.
contentTypeThe MIME type of the file. displaynameThe file name. lockedtrueif users can only access the file from within your course.falseif users can access the file from outside of your course.content_sonA collection that contains: * category: Equal toasset. *name: The file name. *course: The course number. *tag: *org: The organization that created the course. *revisionfilenameThe full path and name of the file in the edX Platform. import_pathTBD thumbnail_locationAn array containing: * c4x* The organization. * The course number. *thumbnail* The filename for the thumbnail.
The following example shows the JSON policy for one image file.
{
"dashboard.png":
{
"contentType": "image/png",
"displayname": "dashboard.png",
"locked": false,
"content_son":
{
"category": "asset",
"name": "dashboard.png",
"course": "Course number",
"tag": "c4x",
"org": "Organization",
"revision": null
},
"filename": "/c4x/Organization/Course-number/asset/dashboard.png",
"import_path": null,
"thumbnail_location":
[
"c4x",
"Organization",
"Course number",
"thumbnail",
"dashboard.jpg",
null
]
}
}