Trying to write some simple application using PHP 8.4.x w/Apache 2.4.x w/mariadb recently. Ran into a snag on allowing Ms-Docx files to be uploaded to a local temp dir then into a physical location. After some configuration with httpd.conf file to allow both doc and docx extension inside httpd.conf file.

Next, the mime_mod module should be enabled along with uncomment out the mod_type file.

make sure docx extension is uncomment out in this mime.types file.

Finally, check your php.ini inside your php installation to allow the following items.

That should enabled the upload of doc and docx files onto a temp location in your OS from aspect of the programming software. The php code would now need to check for its mime type for both doc and docx extension. Your temp location will be different from my custom location within PHP.