HttpServletRequest request, HttpServletResponse response)
throws Exception {
checkAuthorization(userHasPrivilege(request.getSession(), getAdditionalPrivileges()));
ScienceProjectService service = getService(ScienceProjectService.class);
Integer id = new Integer(request.getParameter("key"));
Integer projid = new Integer(request.getParameter("projkey"));
AttachmentVo data = service.loadProjectFilesData(projid,id);
String fileName = data.getName();
//fixing an issue I experienced when viewing files with spaces in the file name
fileName = fileName.replace(' ', '_');
//fixing cache issue in IE
response.setHeader("Pragma", "public");