Index: lams_tool_images/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/conf/language/lams/ApplicationResources.properties,v diff -u -r1.23.2.11 -r1.23.2.12 --- lams_tool_images/conf/language/lams/ApplicationResources.properties 4 Dec 2016 01:56:16 -0000 1.23.2.11 +++ lams_tool_images/conf/language/lams/ApplicationResources.properties 28 Feb 2017 12:33:43 -0000 1.23.2.12 @@ -166,7 +166,8 @@ label.posted.by ={0} on {1} label.image.options =Image options label.activity.completion =End of activity -errors.maxfilesize =Image exceeds maximum file size +errors.maxfilesize =Image exceeds maximum file size {0} +label.upload.info =Uploaded file must not exceed size of {0} label.rating.criterias =Rating criterias label.add.criteria =Add criteria label.number.of.votes ={0} / {1} votes Index: lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties,v diff -u -r1.32.2.9 -r1.32.2.10 --- lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties 4 Dec 2016 01:56:16 -0000 1.32.2.9 +++ lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties 28 Feb 2017 12:33:43 -0000 1.32.2.10 @@ -166,7 +166,8 @@ label.posted.by ={0} on {1} label.image.options =Image options label.activity.completion =End of activity -errors.maxfilesize =Image exceeds maximum file size +errors.maxfilesize =Image exceeds maximum file size {0} +label.upload.info =Uploaded file must not exceed size of {0} label.rating.criterias =Rating criterias label.add.criteria =Add criteria label.number.of.votes ={0} / {1} votes Index: lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/LearningAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/LearningAction.java,v diff -u -r1.27.2.9 -r1.27.2.10 --- lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/LearningAction.java 17 Nov 2016 16:36:08 -0000 1.27.2.9 +++ lams_tool_images/src/java/org/lamsfoundation/lams/tool/imageGallery/web/action/LearningAction.java 28 Feb 2017 12:33:43 -0000 1.27.2.10 @@ -761,7 +761,7 @@ ActionErrors errors = new ActionErrors(); // validate file size - FileValidatorUtil.validateFileSize(itemForm.getFile(), true, errors); + FileValidatorUtil.validateFileSize(itemForm.getFile(), false, errors); // for edit validate: file already exist if (itemForm.getFile() == null || StringUtils.isEmpty(itemForm.getFile().getFileName())) { errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(ImageGalleryConstants.ERROR_MSG_FILE_BLANK)); @@ -792,7 +792,7 @@ // validate files size for (FormFile file : fileList) { - FileValidatorUtil.validateFileSize(file, true, errors); + FileValidatorUtil.validateFileSize(file, false, errors); // check for allowed format : gif, png, jpg String contentType = file.getContentType(); Index: lams_tool_images/web/WEB-INF/tags/AuthoringButton.tag =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/web/WEB-INF/tags/AuthoringButton.tag,v diff -u -r1.11.2.2 -r1.11.2.3 --- lams_tool_images/web/WEB-INF/tags/AuthoringButton.tag 13 Dec 2016 04:22:15 -0000 1.11.2.2 +++ lams_tool_images/web/WEB-INF/tags/AuthoringButton.tag 28 Feb 2017 12:33:43 -0000 1.11.2.3 @@ -123,7 +123,7 @@ }