Index: lams_tool_imscc/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -rfe3ef9c904f3491488a8059856bd73abca666168 -r2206a0e278b26581a3a3c7d266e184551367851f --- lams_tool_imscc/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision fe3ef9c904f3491488a8059856bd73abca666168) +++ lams_tool_imscc/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -131,6 +131,9 @@ label.monitoring.heading =Common Cartridge Monitoring label.resource.options =Resource options label.activity.completion =End of activity +errors.maxfilesize =Uploaded file exceeded maximum size: {0} +error.attachment.executable =Uploaded file is executable +label.upload.info =Uploaded file must not be executable and not exceed size of {0} #======= End labels: Exported 125 labels for en AU ===== Index: lams_tool_imscc/web/WEB-INF/tags/AuthoringButton.tag =================================================================== diff -u -rb5ab72c783a98abeb08431bafb067ad4b9edf1df -r2206a0e278b26581a3a3c7d266e184551367851f --- lams_tool_imscc/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision b5ab72c783a98abeb08431bafb067ad4b9edf1df) +++ lams_tool_imscc/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -123,7 +123,7 @@ }
- + Index: lams_tool_imscc/web/WEB-INF/tags/FileUpload.tag =================================================================== diff -u --- lams_tool_imscc/web/WEB-INF/tags/FileUpload.tag (revision 0) +++ lams_tool_imscc/web/WEB-INF/tags/FileUpload.tag (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -0,0 +1,84 @@ +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ 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"%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ <%-- font-size:inherit needed for Share Resources authoring or the button is too small --%> + + + + +
+ +

${maxFileSize}

+
+ + + + Index: lams_tool_imscc/web/WEB-INF/tags/WaitingSpinner.tag =================================================================== diff -u --- lams_tool_imscc/web/WEB-INF/tags/WaitingSpinner.tag (revision 0) +++ lams_tool_imscc/web/WEB-INF/tags/WaitingSpinner.tag (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -0,0 +1,17 @@ +<%@ taglib uri="tags-core" prefix="c"%> + +<%@ attribute name="id" required="false" rtexprvalue="true"%> +<%@ attribute name="showInline" required="false" rtexprvalue="true"%> + + + id="${id}" + + + + + + + + + + \ No newline at end of file Index: lams_tool_imscc/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -r1f99d03199a3995cfffe0cb1536c08f0220e88b0 -r2206a0e278b26581a3a3c7d266e184551367851f --- lams_tool_imscc/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 1f99d03199a3995cfffe0cb1536c08f0220e88b0) +++ lams_tool_imscc/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -529,5 +529,13 @@ CommentsAuthor /WEB-INF/tags/CommentsAuthor.tag + + FileUpload + /WEB-INF/tags/FileUpload.tag + + + WaitingSpinner + /WEB-INF/tags/WaitingSpinner.tag + Index: lams_tool_imscc/web/pages/authoring/parts/addcommoncartridge.jsp =================================================================== diff -u -r392e4ecb5a9c54f89d14b9a32b309280060e68c9 -r2206a0e278b26581a3a3c7d266e184551367851f --- lams_tool_imscc/web/pages/authoring/parts/addcommoncartridge.jsp (.../addcommoncartridge.jsp) (revision 392e4ecb5a9c54f89d14b9a32b309280060e68c9) +++ lams_tool_imscc/web/pages/authoring/parts/addcommoncartridge.jsp (.../addcommoncartridge.jsp) (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -1,22 +1,47 @@ <%@ include file="/common/taglibs.jsp"%> +<%@ page import="org.lamsfoundation.lams.util.Configuration" %> +<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys" %> +<%@ page import="org.lamsfoundation.lams.util.FileValidatorUtil" %> +<%=Configuration.get(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE)%> +<%=FileValidatorUtil.formatSize(Configuration.getAsInt(ConfigurationKeys.UPLOAD_FILE_LARGE_MAX_SIZE))%> +<%=Configuration.get(ConfigurationKeys.EXE_EXTENSIONS)%> <%@ include file="/common/header.jsp"%> - + + + + - + <%@ include file="/common/messages.jsp"%> - @@ -27,7 +52,7 @@
-
+
Index: lams_tool_imscc/web/pages/authoring/parts/itemattachment.jsp =================================================================== diff -u -ra95a149633c884052a9d1a916f6d0fb2039dc503 -r2206a0e278b26581a3a3c7d266e184551367851f --- lams_tool_imscc/web/pages/authoring/parts/itemattachment.jsp (.../itemattachment.jsp) (revision a95a149633c884052a9d1a916f6d0fb2039dc503) +++ lams_tool_imscc/web/pages/authoring/parts/itemattachment.jsp (.../itemattachment.jsp) (revision 2206a0e278b26581a3a3c7d266e184551367851f) @@ -23,6 +23,10 @@ - +
+ +
+

${UPLOAD_FILE_MAX_SIZE_AS_USER_STRING}

+