MDL-33445 reverted file size check for files inserted by reference
authorMarina Glancy <marina@moodle.com>
Tue, 5 Jun 2012 05:57:16 +0000 (13:57 +0800)
committerMarina Glancy <marina@moodle.com>
Tue, 5 Jun 2012 05:57:16 +0000 (13:57 +0800)
repository/repository_ajax.php

index 5258fb5..240faf3 100644 (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.