I created a plugin to upload files into our moodle courses and this plugin is accessible for all the system administrators (metadata plugin to courses). I used moodle filepicker field type. Now I have an issue that I can't see the uploaded files, which are uploaded by other sys admins, in edit modeI can see only the files uploaded by myself, because only those files are available in my file draft area.
All the files are saved into the database table and I can retrieve them without any issue. Only issue is I can't see them in edit mode.
Did I use wrong filed type? I need to upload only one file per course. How can I display the attached file name in edit mode?