MDL-33445 reverted file size check for files inserted by reference

This commit is contained in:
Marina Glancy 2012-06-05 13:57:16 +08:00
parent 9945ec5e13
commit 6546a73dbb

View File

@ -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.