public void setUiOriginalFileName ( final String uiOriginalFileName ) { this . uiOriginalFileName = uiOriginalFileName ; if ( this . uiOriginalFileName != null && ! this . uiOriginalFileName . isEmpty ( ) ) originalFileName = this . uiOriginalFileName ; }
The UI will attempt to assign an empty value if the file upload box does not have a file selected . This method is used to ignore any empty values while passing through any legitimate file uploads . This means that the absence of a file in the upload box does not indicate that no file should be assigned to the entity .