Impact of wrong file extension for mime type?
-
Hi,
I’ve been using WP Add Mime Types for quite some time to add the ability to upload excel files (more particularly .xlsb extension) to my wordpress website as a downloadable product in woocommerce (so it can be distributed online).
Until today, I had the following settings in the plugin:
xlsb = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsm = application/vnd.ms-excel.sheet.macroEnabled.12I now realize that the correct extension for .xlsb should be:
= application/vnd.ms-excel.sheet.binary.macroEnabled.12So my questions are:
* What is the impact of having the wrong extension associated with a mime type (because it still enabled me to upload xlsb in wordpress)? Could it create incompatibilities and corrupt the file (many users have reported that the xslb file was broken or corrupted when downloaded from the website, which is not the case when I share the file by email directly)? Could that issue be linked to the wrong setting?
* What will be the impact of updating the correct extension on existing xlsb files uploaded on my website? Trying to avoid breaking anything, or having existing excel files already shared with users disappear.
* So can I safely update the extension for xlsb without creating any issues with existing xlsb files (= existing woocommerce products)?Thanks a lot
- The topic ‘Impact of wrong file extension for mime type?’ is closed to new replies.