Index: lams_central/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -re63e2792149fe13694cbdf273d181cc8e5694565 -r9d32ea79b82981feef6c0b1c098101827d734c87 --- lams_central/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision e63e2792149fe13694cbdf273d181cc8e5694565) +++ lams_central/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 9d32ea79b82981feef6c0b1c098101827d734c87) @@ -737,6 +737,9 @@ tour.lesson.remove.content =Remove the lesson completely. This is permanent - it cannot be undone. tour.end.title =End Of Tour tour.end.content =Thank you for taking the tour. To restart the tour, click the Tour button again. +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} +label.file=File - #======= End labels: Exported 731 labels for en AU ===== Index: lams_central/web/WEB-INF/tags/FileUpload.tag =================================================================== diff -u -re6583c4c5d7e77ce169fec274887e0ef2d107958 -r9d32ea79b82981feef6c0b1c098101827d734c87 --- lams_central/web/WEB-INF/tags/FileUpload.tag (.../FileUpload.tag) (revision e6583c4c5d7e77ce169fec274887e0ef2d107958) +++ lams_central/web/WEB-INF/tags/FileUpload.tag (.../FileUpload.tag) (revision 9d32ea79b82981feef6c0b1c098101827d734c87) @@ -12,6 +12,8 @@ <%@ 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"%> @@ -63,7 +65,9 @@ +

${maxFileSize}

+
+ + + @@ -43,28 +58,28 @@ -
- - - -
-
-
+ + + +
+
+
+
-
- -
+ + + + + +
- Index: lams_central/web/toolcontent/import.jsp =================================================================== diff -u -r5725c3e52ad6b3767aa82f1c6be5769f115041aa -r9d32ea79b82981feef6c0b1c098101827d734c87 --- lams_central/web/toolcontent/import.jsp (.../import.jsp) (revision 5725c3e52ad6b3767aa82f1c6be5769f115041aa) +++ lams_central/web/toolcontent/import.jsp (.../import.jsp) (revision 9d32ea79b82981feef6c0b1c098101827d734c87) @@ -1,28 +1,45 @@ -<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> + <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-core" prefix="c"%> <%@ taglib uri="tags-fmt" prefix="fmt"%> +<%@ 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)%> - <fmt:message key="title.import" /> + + + @@ -40,13 +57,17 @@
" method="post" enctype="multipart/form-data" id="importForm"> -

+

- - -   -

+
+ + + + +
+ +