src/FeaturedImageProcessing/FeaturedImageProcessing.php
public function isImageFileExtensionKosher($filename) {

        // must have acceptable file extension
        $imageFileExtension = $this->ImagesHelper->filenameWithExtensionOnly($filename);

        $haystack = Config::get('lasallecmsfrontend.acceptable_image_extensions_for_uploading');

        if (in_array(strtolower($imageFileExtension), $haystack)) {
            return true;
        }

        return false;
    }
public function isImageFileExtensionKosher($filename) {

        // must have acceptable file extension
        $imageFileExtension = $this->ImagesHelper->filenameWithExtensionOnly($filename);

        $haystack = Config::get('lasallecmsfrontend.acceptable_image_extensions_for_uploading');

        if (in_array(strtolower($imageFileExtension), $haystack)) {
            return true;
        }

        return false;
    }
public function isImageFileExtensionKosher ( $ filename ) { // must have acceptable file extension $ imageFileExtension = $ this -> ImagesHelper -> filenameWithExtensionOnly ( $ filename ) ; $ haystack = Config :: get ( 'lasallecmsfrontend.acceptable_image_extensions_for_uploading' ) ; if ( in_array ( strtolower ( $ imageFileExtension ) , $ haystack ) ) { return true ; } return false ; }
Is the image's extension allowed?

@param  string   $filename         The image's filename
@return bool
Is the image s extension allowed?