View source: R/upload_folder_file.R
upload_folder_file | R Documentation |
This function uploads a specific file to a specific folder.
upload_folder_file(canvas, folder_id, file_name, generate_message = TRUE)
canvas |
An object containing the Canvas API key and base URL,
obtained through the |
folder_id |
The ID of the folder to which the file is uploaded. |
file_name |
The path to the local file that should be uploaded. |
generate_message |
A logical expressing whether a message should
be shown after a succesful upload; defaults to |
Note that the user should have rights to access the folder.
If generate_message
is TRUE
, a confirmation message indicating
that the file has been successfully uploaded.
get_course_root_folder()
and get_user_folders()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.