Description Usage Arguments Examples
Upload a local file to a location on Canvas LMS. Read more about possible parameters at https://canvas.instructure.com/doc/api/file.file_uploads.html.
1 | cnvs_upload(path, endpoint = "/api/v1/courses/:course_id/files", ...)
|
path |
Path to file to upload |
endpoint |
Character string of the API endpoint for upload. This depends on the required
context of file. For example, the default,
|
... |
Other parameters passed along to |
1 2 3 4 5 6 7 8 9 | ## Not run:
## Upload a course file, ends up in "unfiled"
cnvs_upload("notes.pdf", course_id = "1732420")
## Upload a course file to a specific folder
cnvs_upload("notes.pdf",
course_id = "1732420", parent_folder_path = "cnvs_files")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.