Index: lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java,v diff -u -r1.43 -r1.44 --- lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java 11 Oct 2006 07:19:28 -0000 1.43 +++ lams_tool_larsrc/src/java/org/lamsfoundation/lams/tool/rsrc/web/action/AuthoringAction.java 27 Oct 2006 19:48:55 -0000 1.44 @@ -664,6 +664,10 @@ else file = (FormFile) resourceForm.getOnlineFile(); + if(file == null || StringUtils.isBlank(file.getFileName())) + return mapping.findForward(ResourceConstants.SUCCESS); + + IResourceService service = getResourceService(); //upload to repository ResourceAttachment att = service.uploadInstructionFile(file, type); Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java,v diff -u -r1.13 -r1.14 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java 11 Oct 2006 07:19:27 -0000 1.13 +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java 27 Oct 2006 19:57:37 -0000 1.14 @@ -655,6 +655,10 @@ else file = (FormFile) surveyForm.getOnlineFile(); + if(file == null || StringUtils.isBlank(file.getFileName())) + return mapping.findForward(SurveyConstants.SUCCESS); + + ISurveyService service = getSurveyService(); //upload to repository SurveyAttachment att = service.uploadInstructionFile(file, type);