next up previous contents
Next: 計算題 Up: 其他小修改 Previous: 其他小修改   Contents

上傳檔案大小

  1. 管理者設定上傳最大檔案下拉選項最大只到 100M,增加 100M 以上的選項。
    [root@moodle moodle23]# diff -uwN ../moodle/lib/moodlelib.php ./lib/moodlelib.php
    --- ../moodle/lib/moodlelib.php	2012-08-10 08:05:01.000000000 +0800
    +++ ./lib/moodlelib.php	2014-07-28 10:52:56.076647352 +0800
    @@ -5909,7 +5914,7 @@
         $filesize[intval($maxsize)] = display_size($maxsize);
     
         $sizelist = array(10240, 51200, 102400, 512000, 1048576, 2097152,
    -                      5242880, 10485760, 20971520, 52428800, 104857600);
    +                      5242880, 10485760, 20971520, 52428800, 104857600,209715200,524288000); //dywang
     
         // Allow maxbytes to be selected if it falls outside the above boundaries
         if (isset($CFG->maxbytes) && !in_array(get_real_size($CFG->maxbytes), $sizelist)) {
    



2017-08-04