private boolean isImageType ( String mime ) { if ( StringUtils . hasText ( mime ) ) { for ( String imageMime : IMAGE_MIMES ) { if ( mime . equalsIgnoreCase ( imageMime ) ) { return true ; } } } return false ; }
Method to validate whether the given mime is an image file