Merge branch 'MDL-46424_master' of https://github.com/dmonllao/moodle
This commit is contained in:
@@ -191,7 +191,7 @@ class repository_upload extends repository {
|
||||
}
|
||||
|
||||
if (($maxbytes!==-1) && (filesize($_FILES[$elname]['tmp_name']) > $maxbytes)) {
|
||||
throw new file_exception('maxbytes');
|
||||
throw new file_exception('maxbytesforfile', $_FILES[$elname]['name']);
|
||||
}
|
||||
|
||||
if (file_is_draft_area_limit_reached($record->itemid, $areamaxbytes, filesize($_FILES[$elname]['tmp_name']))) {
|
||||
|
||||
Reference in New Issue
Block a user