File Picker

Re: File Picker

by Davo Smith -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The standard pluginfile.php script (in the root directory of your Moodle install) that is the usual entry point for serving files, will check to see which plugin the file belongs to, then open up the lib.php script from that plugin and hand over to it to see if the file should be served or not. If lib.php does not exist, or does not contain a PLUGINNAME_pluginfile() function, then it assumes that plugin does not serve any files, so will just return a 'file not found' error.