Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/controller/AuthoringController.java =================================================================== diff -u -r8fb34ff788990c3ae25a0661090636b38bdecec2 -r5c34a04ef321a5a0c211fd830ee52eadc90b89ad --- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/controller/AuthoringController.java (.../AuthoringController.java) (revision 8fb34ff788990c3ae25a0661090636b38bdecec2) +++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/controller/AuthoringController.java (.../AuthoringController.java) (revision 5c34a04ef321a5a0c211fd830ee52eadc90b89ad) @@ -239,7 +239,7 @@ * @throws ServletException */ @RequestMapping(value = "/saveOrUpdateItem") - private String saveOrUpdateItem(@ModelAttribute ResourceItemForm resourceItemForm, HttpServletRequest request) { + private String saveOrUpdateItem(@ModelAttribute("authoringForm") ResourceItemForm resourceItemForm, HttpServletRequest request) { // get instructions: List instructionList = getInstructionsFromRequest(request); MultiValueMap errorMap = new LinkedMultiValueMap<>(); @@ -912,7 +912,7 @@ || resourceItemForm.getItemType() == ResourceConstants.RESOURCE_TYPE_LEARNING_OBJECT || resourceItemForm.getItemType() == ResourceConstants.RESOURCE_TYPE_FILE) { // validate item size - if (!FileValidatorSpringUtil.validateFileSize(resourceItemForm.getFile().getSize(), false)) { + if (!FileValidatorSpringUtil.validateFileSize(resourceItemForm.getFile(), false)) { errorMap.add("GLOBAL", messageService.getMessage("errors.maxfilesize", new Object[] { Configuration.getAsInt(ConfigurationKeys.UPLOAD_FILE_MAX_SIZE) })); } Index: lams_tool_larsrc/web/pages/authoring/authoring.jsp =================================================================== diff -u -r8ee7fa8485b72185b59612fa0cd097adf044d8de -r5c34a04ef321a5a0c211fd830ee52eadc90b89ad --- lams_tool_larsrc/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 8ee7fa8485b72185b59612fa0cd097adf044d8de) +++ lams_tool_larsrc/web/pages/authoring/authoring.jsp (.../authoring.jsp) (revision 5c34a04ef321a5a0c211fd830ee52eadc90b89ad) @@ -70,7 +70,6 @@ -