Skip to content

Commit

Permalink
Merge branch 'MDL-46424_master' of https://github.com/dmonllao/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Mar 1, 2016
2 parents b23f27f + 4ac5ae6 commit de67ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/upload/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function process_upload($saveas_filename, $maxbytes, $types = '*', $savep
}

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']))) {
Expand Down

0 comments on commit de67ef5

Please sign in to comment.