/** * Returns the original filesystem name of the specified file (before any renaming policy was * applied), or null if the file was not included in the upload. A filesystem name is the name * specified by the user. * * @param name the html page's file parameter name. * @return the original file name of the file. */ public String getOriginalFileName(String name) { try { UploadedFile file = (UploadedFile) files.get(name); return file.getOriginalFileName(); // may be null } catch (Exception e) { return null; } }