Skip to content
Browse files

max upload size not shown to students

  • Loading branch information...
1 parent 033cc8a commit 445ec0d7e5024b1bbe09a2de817614d7920a8f0c skodak committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/assignment/type/uploadsingle/assignment.class.php
View
3 mod/assignment/type/uploadsingle/assignment.class.php
@@ -41,10 +41,13 @@ function view() {
function view_upload_form() {
global $CFG;
+ $struploadafile = get_string("uploadafile");
+ $strmaxsize = get_string("maxsize", "", display_size($this->assignment->maxbytes));
echo '<center>';
echo '<form enctype="multipart/form-data" method="post" '.
"action=\"$CFG->wwwroot/mod/assignment/upload.php\">";
+ echo "<p>$struploadafile ($strmaxsize)</p>";
echo '<input type="hidden" name="id" value="'.$this->cm->id.'" />';
require_once($CFG->libdir.'/uploadlib.php');
upload_print_form_fragment(1,array('newfile'),false,null,0,$this->assignment->maxbytes,false);

0 comments on commit 445ec0d

Please sign in to comment.
Something went wrong with that request. Please try again.