I've been looking for the same thing myself. I thought I'd seen it somewhere in site admin settings, but can't seem to find it now!
Anybody out there now where to change this?
Ok first of all, coming to this from several months later (sorry Tom) teachers can't log in as students unless the admin expressly allows them that capabilty -which is up to your admin. The 20 files max upload refers to the number of files each individual student can upload to one assignment (dropbox?) and not to the number of files a teacher uploading for a student could upload. There was in 1.9 a place in the code where you could increase this number (I remember finding it and posting it ) but I don't think you necessarily need that Tom. Dot - if you need it I will try to find it again)
I am still looking for it, so any help would be much appreciated. I know I found it when we had 1.9 somewhere in the Site admin settings, but now that we 2.x I don't know where it's hiding!
So...we have Moodlerooms as our host for Moodle and I asked their tech dept. The answer was that "this limit is hard-coded into the software" and can't be changed without a "code customization." So if a student needs to upload more than 20 files, they have to zip their files together.
Hi Dot. Yes - it was never in the site admin settings even in 1.9 - I had to find it in the code when I did find it.
I'm sorry for responding to such an old thread, but this is something that's been been driving me crazy all day. I cannot find a default setting anywhere in the site administration, nor can I find the default setting anywhere in the code. Right now the "maximum number of uploaded files" default value in a course is 1. We need to change that to 10.
Can this actually be done? We're using Moodle 2.3.2.
I know this is an incredibly old thread, but, as we are looking at it, and I found it in the code, I thought I would post back.
I found it for Moodle 2.5, but, my method to find it should work anywhere.
Using Chrome or Firefox (or another browser that has some form of web develop plugin installed)~:
Go through the process of adding an assignment to a course. On the drop down where it asks the teacher/creator to set how many files they want to limit the student to, right click and select inspect element. Drill down to the actual select and we want to take note of the 'name'. In the Moodle code base (e.g. in NetBeans), do a search across all files for this string. It should be found in a DEFINE statement in a lib file.
For reference, in moodle 25, the name was: ASSIGNSUBMISSION_FILE_MAXFILES and the file is: moodle\mod\assign\submission\file\locallib.php
I know this is an older thread, but the solution to this issue is being debated now at https://moodle.org/mod/forum/discuss.php?d=273202
the code to fix this issue is on https://tracker.moodle.org/browse/MDL-47777
If you have a use case as to why it might be needed to allow more than 20 files, let Moodle know about it. Thanks!
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 | firstname.lastname@example.org | Indonesia
How do the same thing for the 2.2 version ?
There is no directory "mod\assign\submission\file"