Skip to content

Commit

Permalink
Added example to uploading_files.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
anbeemer committed Jul 17, 2024
1 parent d2a1eeb commit c85a7f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/tutorials/uploading_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,24 @@ The `destination` key specifies where in the file structure you would like the f
Example
=======

If the `meta.json` folder looks like:

.. code-block::
{
"type":"file",
"title":"Syllabus",
"filename":"F24_Math100_syllabus.pdf",
"modules":["Course Information", "Week 1"],
"destination": "course_info/syllabus_schedule"
}
then the file `F24_Math100_syllabus.pdf` will be put into two modules: `Course Information` and `Week 1`.
Within these two modules, its title will appear to students as `Syllabus`. The file will be located in `course_info/syllabus_schedule`,
which will be created if it did not already exist.

Note that while a file cannot be simultaneously placed in multiple file structure locations using `meta.json`, if `meta.json` is updated,
the file will not automatically be deleted from any previous location unless that instance is specifically deleted.



0 comments on commit c85a7f3

Please sign in to comment.