Alex JMcL
Alex JMcL
> Thanks. I just don't want to add it to your code, because it's included in the project via composer
> Webp files not allowed, > > connector.minimal.php I added Allowed file tyle 'image/webp' but it is not working > > `'uploadAllow' => array('image/x-ms-bmp', 'image/gif', 'image/jpeg', 'image/png', 'image/x-icon', 'text/plain', 'audio/mpeg',...
I solved my problem. Now when uploading images (jpeg, png, bmp) there is a conversion to webp. And the conversion goes locally.
> What about would you try uploading "Avif" files As i understand it, you need to do it according to the same principle as i added webp. Download my version...
In version 2.1.60 it is missing from mime types. Try adding it to the mime.types file. And "image/avif" not support GD. Only work Imagick, up to php 8.1 ( func:...
Most likely I understand how to solve it. You create your own pattern, but you do not add it to the existing class pattern. Here you can solve the methods...
`/** * @param array $pattern * @return bool */ protected function addPattern(array $pattern):bool { if(!empty($pattern)) { $this->patterns = array_merge($this->patterns, $pattern); return true; } return false; }`
`$patterns = array( ':lang' => 'ua|ru|eng|de' ); $router->addPattern($patterns);`
"$router->pattern($patterns);" - Haven't tried using the built-in . But I'll watch it later
`/** * Add new route rules pattern; String or Array * * @param array|string $pattern * @param string|null $attr * * @return true * @throws */ public function pattern(array|string $pattern,...