Added new field type file upload#20
Conversation
There was a problem hiding this comment.
Got an error when adding a field:
Notice: Undefined property: stdClass::$defaultdata in /Users/mikechurchward/www/moodlehq.git/local/metadata/definelib.php on line 364
When I accessed the module metadata form, got these errors:
Warning: Use of undefined constant FILE_INTERNAL - assumed 'FILE_INTERNAL' (this will throw an Error in a future version of PHP) in /Users/mikechurchward/www/moodlehq.git/local/metadata/fieldtype/fileupload/classes/metadata.php on line 44
Warning: Use of undefined constant FILE_EXTERNAL - assumed 'FILE_EXTERNAL' (this will throw an Error in a future version of PHP) in /Users/mikechurchward/www/moodlehq.git/local/metadata/fieldtype/fileupload/classes/metadata.php on line 44
These ones were fixed with a "require_once($CFG->dirroot . '/repository/lib.php');
mchurchward
left a comment
There was a problem hiding this comment.
I think this is useful, but I can't see how to use it well.
I was able to attach a file to an activity module, but other than seeing in an editor as an attached file, I am unable to see the file.
Have you had this working?
This is for 3.10 by the way.
Thank you so much for this valuable plugin. We are using this plugin in course module level and we added new field type, file upload. I thought it is worth to share it.