Index: lams_central/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources.properties,v diff -u -r1.138.2.48 -r1.138.2.49 --- lams_central/conf/language/lams/ApplicationResources.properties 10 Feb 2017 03:23:31 -0000 1.138.2.48 +++ lams_central/conf/language/lams/ApplicationResources.properties 1 Mar 2017 12:18:05 -0000 1.138.2.49 @@ -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 =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/WEB-INF/tags/Attic/FileUpload.tag,v diff -u -r1.1.2.2 -r1.1.2.3 --- lams_central/web/WEB-INF/tags/FileUpload.tag 28 Feb 2017 11:27:11 -0000 1.1.2.2 +++ lams_central/web/WEB-INF/tags/FileUpload.tag 1 Mar 2017 12:18:05 -0000 1.1.2.3 @@ -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 =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/toolcontent/import.jsp,v diff -u -r1.17.12.3 -r1.17.12.4 --- lams_central/web/toolcontent/import.jsp 26 Feb 2016 20:01:56 -0000 1.17.12.3 +++ lams_central/web/toolcontent/import.jsp 1 Mar 2017 12:18:05 -0000 1.17.12.4 @@ -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"> -

+

- - -   -

+
+ + + + +
+ +