public static function isValidUploadFile(string $uploadField, array $arrMimeType = array(), Request $request) : bool
    {
        $uploadedFile = self::getFileSafe($uploadField, $request);

        if (!is_a($uploadedFile, UploadedFile::class)) {
            return false;
        }

        return UploadedFileHelper::isValidUploadFile($uploadedFile, $arrMimeType);
    }
public static function isValidUploadFile(string $uploadField, array $arrMimeType = array(), Request $request) : bool
    {
        $uploadedFile = self::getFileSafe($uploadField, $request);

        if (!is_a($uploadedFile, UploadedFile::class)) {
            return false;
        }

        return UploadedFileHelper::isValidUploadFile($uploadedFile, $arrMimeType);
    }
public static function isValidUploadFile ( string $ uploadField , array $ arrMimeType = array ( ) , Request $ request ) : bool { $ uploadedFile = self :: getFileSafe ( $ uploadField , $ request ) ; if ( ! is_a ( $ uploadedFile , UploadedFile :: class ) ) { return false ; } return UploadedFileHelper :: isValidUploadFile ( $ uploadedFile , $ arrMimeType ) ; }
Check if uploaded File is valid and has a valid Mime Type.
Return true is all ok, otherwise return false.
@param string $uploadField
@param array $arrMimeType
@param Request $request
@return bool
Check if uploaded File is valid and has a valid Mime Type . Return true is all ok otherwise return false .