You could also look into a phpMyAdmin config option.
Have a look at your
phpmyadmin/config.inc.php (and for info phpmyadmin/config.sample.inc.php)
* web-server upload directory
$cfg['UploadDir'] = ''; // Directory for uploaded files that can be executed by
// phpMyAdmin. For example './upload'. Leave empty for
// no upload directory support
You should be careful and evaluate who is using phpmyadmin.
Customizing this file, so user can upload only within their allowed path maybe an option…
Directory where SQL files can be uploaded by means other than phpMyAdmin (for example with FTP).
This allows file import even if file uploads are disabled in php.ini. For example './upload'.
Leave empty for no upload directory support. Use %u for username inclusion.
Note: the dropdown file select field is only shown after a file was successfully uploaded.
$cfg['UploadDir'] = '';