MDL-61453 user: Fix accepted file type when uploading user pictures

Not all archives are supported, only ZIP files are.
This commit is contained in:
David Mudrák 2018-02-14 18:06:45 +01:00
parent 315a0a3aaf
commit 26c1c01629

View File

@ -37,7 +37,7 @@ class admin_uploadpicture_form extends moodleform {
$options = array();
$options['accepted_types'] = array('archive');
$options['accepted_types'] = array('.zip');
$mform->addElement('filepicker', 'userpicturesfile', get_string('file'), 'size="40"', $options);
$mform->addRule('userpicturesfile', null, 'required');