Problem when upload image

Job ID: 34977995

Budget: $10 – $30 USD

I have problem when I used the attached script to upload image into my website with the following error message :

The PHP fileinfo extension isn't loaded and ImageUpload was unable to load it for you.

When I search through the web, it said uncomment the following line in php.ini :
extension=php_fileinfo.dll

However, there is no such line in my php.ini. I am using CentOS v7.9.2009 STANDARD standard hosting and php8. Please help me to settle this issue.
Related categories: PHP Linux Software Architecture Apache MySQL