Quantcast
Viewing all articles
Browse latest Browse all 9644

Moodle File Upload (HELP)

by Vincent Sy.  

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.


Viewing all articles
Browse latest Browse all 9644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>