--- loncom/interface/lonsupportreq.pm 2015/06/09 21:22:57 1.79 +++ loncom/interface/lonsupportreq.pm 2015/06/18 20:19:06 1.80 @@ -1,5 +1,5 @@ # -# $Id: lonsupportreq.pm,v 1.79 2015/06/09 21:22:57 damieng Exp $ +# $Id: lonsupportreq.pm,v 1.80 2015/06/18 20:19:06 musolffc Exp $ # # Copyright Michigan State University Board of Trustees # @@ -145,7 +145,7 @@ sub print_request_form { subj => 'Subject', detd => 'Detailed Description', opfi => 'Optional file upload', - uplf => 'Upload a file (e.g., a screenshot) relevant to your help request (128 KB max.)', + uplf => 'Upload a file (e.g., a screenshot) relevant to your help request (1 MB max.)', fini => 'Finish', clfm => 'Clear Form', ); @@ -275,6 +275,7 @@ $jscript $loaditems // ]]> + ENDJS my %add_entries = ( style => "margin-top:0px;margin-bottom:0px;", @@ -506,10 +507,11 @@ ENDJS $i = $num%2; if (($env{'user.name'} =~ /^$match_username$/) && (!$public)) { if ($homeserver) { - $output .= &Apache::lonhtmlcommon::row_title($html_lt{'opfi'},undef,$css[$i]). - '
'. - "\n".$html_lt{'uplf'}."\n". - &Apache::lonhtmlcommon::row_closure(); + $output .= &Apache::lonhtmlcommon::row_title($html_lt{'opfi'},undef,$css[$i]) + .' ' + .'' + .'
'."\n".$html_lt{'uplf'}."\n" + .&Apache::lonhtmlcommon::row_closure(); $num ++; $i = $num%2; } @@ -843,9 +845,9 @@ END if ((defined($env{'user.name'})) && (!$public)) { if ($homeserver && $env{'form.screenshot.filename'}) { $attachmentsize = length($env{'form.screenshot'}); - if ($attachmentsize > 131072) { + if ($attachmentsize > 1048576) { $displaymsg .= '
'. - &mt('The uploaded screenshot file ([_1] bytes) included with your request exceeded the maximum allowed size - 128 KB, and has therefore been discarded.',$attachmentsize).''; + &mt('The uploaded screenshot file ([_1] bytes) included with your request exceeded the maximum allowed size - 1 MB, and has therefore been discarded.',$attachmentsize).''; } else { $attachmentpath=&Apache::lonnet::userfileupload('screenshot',undef,'helprequests'); }