It looks tricky to cheat matomo [https://matomo.org] INFILE usage when you use
PHP8 [https://www.php.net/releases/8.0/en.php] and MySQL8
[https://www.mysql.com].
My quick hints are:
1. Did you have put in my.cnf file:
secure-file-priv = //matomo/tmp/assets/
2. Do you