Quantcast
Channel: Assignment
Viewing all articles
Browse latest Browse all 9604

Re: Changing Maximum Number of Uploaded Files

$
0
0
by Mochamad Nur Qomarudin.  

I am running moodle 2.9.2+. I think, I have found a way to change Maximum Number of Uploaded Files in Assignment. The site give a limitation only 20 files, but I need to give a space for 30 uploaded file, just for very very special case.

The setting was saved in database: mdl_config_plugins > [plugin] assignsubmission_file> [name] maxfiles > [value] 20

All we need to do is only change the value. Don't change manually using phpmyadmin or something else, because it will not make any effect, instead, use moodle function set_config

the function is:

        set_config($name, $value, $plugin);

so... the code

        set_config('maxfiles', 30, 'assignsubmission_file');

Execute in any php files within moodle folder after require_once(__DIR__ .'/../../config.php');

Thats all.... All Praise for Allah... The Creator and Sustainer of The Universe

by: Mochamad Nur Qomarudin | alfiyahibnumalik@gmail.com | Indonesia


Viewing all articles
Browse latest Browse all 9604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>