file
File upload input box with browse button. In the form definition type
$mform->addElement('file', 'attachment', get_string('attachment', 'forum'));
after form submission and validation use
if ($data = $mform->get_data()) {
...
$mform->save_files($destination_directory);
...
}
how to do the code above? help please.
where do i put the codes? in what specific file?
i really want to save a file to the directory i want. please help.
its on moodle 1.9