--- V:/_MOODLE/lib.php Mon Mar 23 16:10:21 2015 +++ V:/_MOODLE/lib-my.php Mon Mar 23 16:10:35 2015 @@ -191,7 +191,7 @@ } 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']))) {