protected function fileType() {

		$type = '';

		if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $this->post->ID ), $matches ) ) {

			$type = $matches[1];
		}

		return $type ? esc_html( strtoupper( $type ) ) : '';
	}
protected function fileType() {

		$type = '';

		if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $this->post->ID ), $matches ) ) {

			$type = $matches[1];
		}

		return $type ? esc_html( strtoupper( $type ) ) : '';
	}
protected function fileType ( ) { $ type = '' ; if ( preg_match ( '/^.*?\.(\w+)$/' , get_attached_file ( $ this -> post -> ID ) , $ matches ) ) { $ type = $ matches [ 1 ] ; } return $ type ? esc_html ( strtoupper ( $ type ) ) : '' ; }
Returns the media file type.

@since  5.0.0
@access protected
@return string
Returns the media file type .