mdl_files itemid relation to an activity

Re: mdl_files itemid relation to an activity

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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