Skip to content

Commit

Permalink
MDL-42266 Lib: Allow additional max upload file sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget committed Jan 16, 2017
1 parent d97582f commit 9820c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/moodlelib.php
Expand Up @@ -6589,7 +6589,9 @@ function get_max_upload_sizes($sitebytes = 0, $coursebytes = 0, $modulebytes = 0

$filesize = array();
$sizelist = array(10240, 51200, 102400, 512000, 1048576, 2097152,
5242880, 10485760, 20971520, 52428800, 104857600);
5242880, 10485760, 20971520, 52428800, 104857600,
262144000, 524288000, 786432000, 1073741824,
2147483648, 4294967296, 8589934592);

// If custombytes is given and is valid then add it to the list.
if (is_number($custombytes) and $custombytes > 0) {
Expand Down

0 comments on commit 9820c67

Please sign in to comment.