The solution is relatively straight forward. If your website is on shared hosting and/or you don’t have access to the apache2 configuration files you can add/edit an .htaccess file to add the new mime types. Add the following to your htaccess (this should cover the most common unknown mimetypes):

AddType video/ogg  .ogv
AddType video/mp4  .mp4
AddType video/webm .webm
AddType application/ .docm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType application/ potm
AddType application/vnd.openxmlformats-officedocument.presentationml.template potx
AddType application/ ppam
AddType application/ ppsm
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType application/ pptm
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType application/ xlam
AddType application/ xlsb
AddType application/ xlsm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType application/ xltm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx


If you do have access to the servers apache configurations, you could add the following to the /etc/mime.types file:

video/ogg  .ogv
video/mp4  .mp4
video/webm .webm
application/ .docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/ potm
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/ ppam
application/ ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/ pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/ xlam
application/ xlsb
application/ xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/ xltm
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx


Magento 2.4.7 is here!
David Pratt

Magento 2.4.7 Has Arrived!

Magento 2.4.7 is set to land, with the latest release due to be launched on Tuesday the 9th of April 2024. The latest updates sees over 150 performance and security fixes as well as platform enhancements and upgrades.
Read More »
DTF Digital