mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-59954 mod_course: Remove file size restriction on D&D on course page
Remove file size restrictions for teachers on course page. Use user_max_upload_file_size instead of the max_file_size
This commit is contained in:
parent
33a388eff7
commit
6afbdf2778
2 changed files with 3 additions and 3 deletions
|
@ -744,7 +744,7 @@ M.course_dndupload = {
|
|||
var xhr = new XMLHttpRequest();
|
||||
var self = this;
|
||||
|
||||
if (file.size > this.maxbytes) {
|
||||
if (this.maxbytes > 0 && file.size > this.maxbytes) {
|
||||
new M.core.alert({message: M.util.get_string('namedfiletoolarge', 'moodle', {filename: file.name})});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue