Index: lams_tool_assessment/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -ra134c46269a178953fd900aa428cfc77c1a0e008 -r297ca6b046fae0561e4ba95ddf1b6d5d810218f8 --- lams_tool_assessment/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision a134c46269a178953fd900aa428cfc77c1a0e008) +++ lams_tool_assessment/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 297ca6b046fae0561e4ba95ddf1b6d5d810218f8) @@ -240,7 +240,7 @@ authoring.title.import =Import questions authoring.import.instruction =Please choose questions to import. button.select.importfile =Select file to import -msg.import.file.format =The import file must be .xml file exported from assessment tool. +msg.import.file.format =The import file must be .xml file exported from assessment tool and not exceed size of {0} error.import.file.format =The import file is not an .xml file. label.import.file =Import xml file button.import =Import @@ -297,6 +297,6 @@ label.waiting.for.leader.launch.time.limit =Leader has not started the activity. Please wait until he/she commences it. label.waiting.for.leader.finish =Time limit set by teacher is over. Please wait until a group leader finishes the activity. warn.mark.hedging.wrong.justification =Justification cannot be left blank - - +label.file=File +errors.maxfilesize=File exceeds maximum file size {0} #======= End labels: Exported 290 labels for en AU ===== Index: lams_tool_assessment/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== diff -u -r19b542142aa60e2410055b83faecc18681909af4 -r297ca6b046fae0561e4ba95ddf1b6d5d810218f8 --- lams_tool_assessment/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 19b542142aa60e2410055b83faecc18681909af4) +++ lams_tool_assessment/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 297ca6b046fae0561e4ba95ddf1b6d5d810218f8) @@ -240,7 +240,8 @@ authoring.title.import =Import questions authoring.import.instruction =Please choose questions to import. button.select.importfile =Select file to import -msg.import.file.format =The import file must be .xml file exported from assessment tool. +msg.import.file.format =The import file must be .xml file exported from assessment tool and not exceed size of {0} +error.import.file.format =The import file is not an .xml file. label.import.file =Import xml file button.import =Import label.authoring.basic.import.questions =Import @@ -296,6 +297,6 @@ label.waiting.for.leader.launch.time.limit =Leader has not started the activity. Please wait until he/she commences it. label.waiting.for.leader.finish =Time limit set by teacher is over. Please wait until a group leader finishes the activity. warn.mark.hedging.wrong.justification =Justification cannot be left blank - - +label.file=File +errors.maxfilesize=File exceeds maximum file size {0} #======= End labels: Exported 290 labels for en AU ===== Index: lams_tool_assessment/web/WEB-INF/tags/FileUpload.tag =================================================================== diff -u -ra134c46269a178953fd900aa428cfc77c1a0e008 -r297ca6b046fae0561e4ba95ddf1b6d5d810218f8 --- lams_tool_assessment/web/WEB-INF/tags/FileUpload.tag (.../FileUpload.tag) (revision a134c46269a178953fd900aa428cfc77c1a0e008) +++ lams_tool_assessment/web/WEB-INF/tags/FileUpload.tag (.../FileUpload.tag) (revision 297ca6b046fae0561e4ba95ddf1b6d5d810218f8) @@ -3,17 +3,34 @@ <%@ taglib uri="tags-function" prefix="fn" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> +<%-- Usually fileFieldname and fileFieldId are the same, but DACO needs them to be different. + If they can be the same, set fileFieldname and fileFieldId will be set to the same. + If you need them different, then define both. + If you define neither, fileFieldname = fileFieldId = "fileSelector" --%> <%@ attribute name="fileFieldname" required="false" rtexprvalue="true"%> +<%@ attribute name="fileFieldId" required="false" rtexprvalue="true"%> + <%@ attribute name="fileInputNameFieldname" required="false" rtexprvalue="true"%> <%@ attribute name="fileInputMessageKey" required="false" rtexprvalue="true"%> + +<%-- Set uploadInfoMessageKey to '-' to NOT show the "not exe and max file size" type message. Leave it blank for the default key label.upload.info --%> <%@ attribute name="uploadInfoMessageKey" required="false" rtexprvalue="true"%> <%@ attribute name="maxFileSize" required="true" rtexprvalue="true"%> <%@ attribute name="tabindex" required="false" rtexprvalue="true"%> + +<%-- Only set if you have more than one file field on the screen (such as DACO) --%> +<%@ attribute name="errorMsgDiv" required="false" rtexprvalue="true"%> +<%@ attribute name="fileButtonBrowse" required="false" rtexprvalue="true"%> + + + + + @@ -30,25 +47,36 @@ + + + + + + + + +
<%-- font-size:inherit needed for Share Resources authoring or the button is too small --%> - - +
+

${maxFileSize}

- +
+ +