Skip to content

Commit

Permalink
Files uploading max size is now specified by site configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo3ipunt committed Nov 28, 2024
1 parent 65404f5 commit bc46e55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class mod_videoconnect_mod_form extends moodleform_mod {
*/
public function definition() {
global $CFG;
<<<<<<< Updated upstream
=======

$course = $this->_course;
>>>>>>> Stashed changes

$mform = $this->_form;

Expand Down Expand Up @@ -97,8 +102,13 @@ public function definition() {
$mform->addHelpButton('idvideo', 'idvideo', 'mod_videoconnect');

$filemanageroptions['accepted_types'] = ['.mp4', '.mov', '.wmv', '.avi', '.flv'];
<<<<<<< Updated upstream
$filemanageroptions['maxbytes'] = 0;
$filemanageroptions['maxfiles'] = -1;
=======
$filemanageroptions['maxbytes'] = $course->maxbytes;
$filemanageroptions['maxfiles'] = 1;
>>>>>>> Stashed changes
$filemanageroptions['mainfile'] = true;

$mform->addElement(
Expand Down

0 comments on commit bc46e55

Please sign in to comment.