mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-33445 reverted file size check for files inserted by reference
This commit is contained in:
parent
9945ec5e13
commit
6546a73dbb
@ -263,10 +263,6 @@ switch ($action) {
|
||||
'icon' => $OUTPUT->pix_url(file_file_icon($storedfile, 32))->out(),
|
||||
);
|
||||
}
|
||||
if ($maxbytes !== -1 && $storedfile->get_filesize() > $maxbytes) {
|
||||
$storedfile->delete();
|
||||
throw new file_exception('maxbytes');
|
||||
}
|
||||
// Repository plugin callback
|
||||
// You can cache reository file in this callback
|
||||
// or complete other tasks.
|
||||
|
Loading…
x
Reference in New Issue
Block a user