Merge branch 'MDL-46424_master' of https://github.com/dmonllao/moodle

This commit is contained in:
Dan Poltawski
2016-03-01 12:38:54 +08:00
+1 -1
View File
@@ -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']))) {