mdl_files itemid relation to an activity

Re: mdl_files itemid relation to an activity

Bởi Tim Hunt -
Số lượng các câu trả lời: 0
Hình của Core developers Hình của Documentation writers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers

The itemid does not necessarily relate to an activity or resource. What it means depends on where the file was uploaded.

Look instead at the contextid and component columns. They may tell you want you want to know. However, you really need to read the File API docs: https://docs.moodle.org/dev/File_API