[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

raeburn raeburn at source.lon-capa.org
Sun Aug 11 12:19:52 EDT 2019


raeburn		Sun Aug 11 16:19:52 2019 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - Client-side checking for uploaded file size.
   - File size checks in multi-part problems supported where different size
     limits potentially apply to essayresponse items in the different parts.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.347 loncom/homework/inputtags.pm:1.348
--- loncom/homework/inputtags.pm:1.347	Wed Aug  7 19:32:38 2019
+++ loncom/homework/inputtags.pm	Sun Aug 11 16:19:52 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.347 2019/08/07 19:32:38 raeburn Exp $
+# $Id: inputtags.pm,v 1.348 2019/08/11 16:19:52 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -671,8 +671,9 @@
         my $free_space = $maxfilesize * 1048576;
         $result .= &mt('Submit a file: (only one file per submission)').
             ' <br /><input type="file" size="50" name="HWFILE'.$jspart.'_'.$id.
-            '" id="HWFILE'.$jspart.'_'.$id.'" class="LC_flUpload" />'.
-            '<input type="hidden" id="free_space" value="'.$free_space.'" /><br />';
+            '" id="HWFILE'.$jspart.'_'.$id.'" class="LC_flUpload LC_hwkfile" />'.
+            '<input type="hidden" id="LC_free_space_'.$jspart.'_'.$id.'"'.
+            ' value="'.$free_space.'" /><br />';
         }
     if ( $which eq 'both') {
 	$result.='<br />'.'<strong>'.&mt('OR:').'</strong><br />';




More information about the LON-CAPA-cvs mailing list