Index: lams_tool_pixlr/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -r3b4e8ba4dc2194067463880c844cc07f01a76547 -r3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b --- lams_tool_pixlr/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 3b4e8ba4dc2194067463880c844cc07f01a76547) +++ lams_tool_pixlr/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -104,6 +104,8 @@ message.no.reflection.available =No notebook entry has been added. label.image.options =Image options label.activity.completion =End of activity +errors.maxfilesize =Uploaded file exceeded maximum size of {0} +label.upload.info =Uploaded file must not be executable and not exceed size of {0} #======= End labels: Exported 98 labels for en AU ===== Index: lams_tool_pixlr/web/WEB-INF/tags/AuthoringButton.tag =================================================================== diff -u -rb5ab72c783a98abeb08431bafb067ad4b9edf1df -r3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b --- lams_tool_pixlr/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision b5ab72c783a98abeb08431bafb067ad4b9edf1df) +++ lams_tool_pixlr/web/WEB-INF/tags/AuthoringButton.tag (.../AuthoringButton.tag) (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -123,7 +123,7 @@ }
- + Index: lams_tool_pixlr/web/WEB-INF/tags/FileUpload.tag =================================================================== diff -u --- lams_tool_pixlr/web/WEB-INF/tags/FileUpload.tag (revision 0) +++ lams_tool_pixlr/web/WEB-INF/tags/FileUpload.tag (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -0,0 +1,56 @@ +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-function" prefix="fn" %> +<%@ taglib uri="tags-fmt" prefix="fmt" %> + +<%@ attribute name="fileFieldname" required="false" rtexprvalue="true"%> +<%@ attribute name="fileInputNameFieldname" required="false" rtexprvalue="true"%> +<%@ attribute name="fileInputMessageKey" required="false" rtexprvalue="true"%> +<%@ attribute name="uploadInfoMessageKey" required="false" rtexprvalue="true"%> +<%@ attribute name="maxFileSize" required="true" rtexprvalue="true"%> +<%@ attribute name="tabindex" required="false" rtexprvalue="true"%> + + + + + + + + + + + + + + + + + + + + + +
+ <%-- font-size:inherit needed for Share Resources authoring or the button is too small --%> + + + + +
+

${maxFileSize}

+ + + + Index: lams_tool_pixlr/web/WEB-INF/tags/WaitingSpinner.tag =================================================================== diff -u --- lams_tool_pixlr/web/WEB-INF/tags/WaitingSpinner.tag (revision 0) +++ lams_tool_pixlr/web/WEB-INF/tags/WaitingSpinner.tag (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -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_pixlr/web/WEB-INF/tlds/lams/lams.tld =================================================================== diff -u -r1f99d03199a3995cfffe0cb1536c08f0220e88b0 -r3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b --- lams_tool_pixlr/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 1f99d03199a3995cfffe0cb1536c08f0220e88b0) +++ lams_tool_pixlr/web/WEB-INF/tlds/lams/lams.tld (.../lams.tld) (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -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_pixlr/web/pages/authoring/authoring.jsp =================================================================== diff -u -rd90a410fd0e5efc3e47d5a112843ab7db4d3bbc4 -r3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b --- lams_tool_pixlr/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision d90a410fd0e5efc3e47d5a112843ab7db4d3bbc4) +++ lams_tool_pixlr/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -1,7 +1,32 @@ <%@ include file="/common/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.tool.pixlr.util.PixlrConstants"%> +<%@ 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))%> - + + + Index: lams_tool_pixlr/web/pages/authoring/basic.jsp =================================================================== diff -u -r7c09c69c0428d1566f8797675855ae20643fede8 -r3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b --- lams_tool_pixlr/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 7c09c69c0428d1566f8797675855ae20643fede8) +++ lams_tool_pixlr/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -50,10 +50,11 @@
- - + + + + + Index: lams_tool_pixlr/web/pages/authoring/headItems.jsp =================================================================== diff -u -rd90a410fd0e5efc3e47d5a112843ab7db4d3bbc4 -r3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b --- lams_tool_pixlr/web/pages/authoring/headItems.jsp (.../headItems.jsp) (revision d90a410fd0e5efc3e47d5a112843ab7db4d3bbc4) +++ lams_tool_pixlr/web/pages/authoring/headItems.jsp (.../headItems.jsp) (revision 3765e0fe6f3b1bfa7c071328c3c1bd1673c0fe9b) @@ -8,3 +8,4 @@ +