FileItem.getFileName

Returns the file name of the file that is saved as on the server. If replace duplicate is not selected a unique file will be created with _x appended to the original name. e.g myfile.txt is created as myfile_1.txt if the file already exists.

Further documentation.

returns java.lang.String