I need to add attachment input to moodle sign up form
This file input is not supported by moodle through the standard user profile fields.
So I tried to add it manually:
I added:
$mform->addElement('file', 'attach', "Attach", null,array( 'accepted_types' => 'pdf'));
$mform->setType('attach', PARAM_RAW);
$mform->addRule('attach', 'Missing File Attachment', 'required', null, 'client');
But where should I tell Moodle to insert that value into the database?