mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
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:
parent
315a0a3aaf
commit
26c1c01629
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user