Destroys all content for the uploaded file, including any underlying data files.
142143144145146147148149150151152
request.setAttribute("contentType", contentType); request.setAttribute("size", size); request.setAttribute("data", data); //destroy the temporary file created file.destroy(); //return a forward to display.jsp return mapping.findForward("display"); }
140141142143144145146147148149150
183184185186187188189190191192193
160161162163164165166167168169170
try { stream.close(); } catch (Exception e) { mLogger.error("Closing stream",e); }; } } //destroy the temporary file created file.destroy(); } else if (!rses.isUserAuthorizedToAuthor(website)) { fwd = mapping.findForward("access-denied"); } return fwd;
203204205206207208209210211212213
Iterator iter = elementsFile.values().iterator(); while (iter.hasNext()) { FormFile formFile = (FormFile) iter.next(); formFile.destroy(); } } // ---------------- Inner Class --------------------