/** * Returns the filesystem name of the specified file, or null if the file was not included in the * upload. A filesystem name is the name specified by the user. It is also the name under which * the file is actually saved. * * @param name the html page's file parameter name. * @return the filesystem name of the file. */ public String getFilesystemName(String name) { try { UploadedFile file = files.get(name); return file.getFilesystemName(); // may be null } catch (Exception e) { return null; } }