Title: Adding MIME Types
Last modified: August 22, 2016

---

# Adding MIME Types

 *  Resolved [zkiller](https://wordpress.org/support/users/zkiller/)
 * (@zkiller)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-mime-types-1/)
 * While the plugin works great for me, it is missing a couple of MIME types that
   I need. Namely those for Microsoft update and patch files.
 * .msp –> application/octet-stream
    .msu –> application/octet-stream
 * I figured it would be as simple as adding these to the mime-types.txt file, but
   the strings you are using are a bit more complex than what I was expecting. Could
   you assist in adding these? Thanks!
 * [https://wordpress.org/plugins/wp-extra-file-types/](https://wordpress.org/plugins/wp-extra-file-types/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [davide.airaghi](https://wordpress.org/support/users/davideairaghi/)
 * (@davideairaghi)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-mime-types-1/#post-5645166)
 * I’ve just added .msp and .msu to the list, update your plugin to release 0.2.1
   and you’ll be ok.
 * If you want to add other extensions you can to it with a simple procedure.
    0.
   open directory wp-content/plugins/wp-extra-file-types 1. open file get-mime.php
   with a text editor 2. look for a variable called $extra (it’s declared as an 
   array) 3. add to it you extensions: the “key” is the extension, the “value” is
   an array containing the mime-type, the description of the file and _false_ 4.
   save the file 5. execute from command line _php get-mime.php_ (your user must
   have write permissions on file mime-list.txt)

Viewing 1 replies (of 1 total)

The topic ‘Adding MIME Types’ is closed to new replies.

 * ![](https://ps.w.org/wp-extra-file-types/assets/icon-256x256.png?rev=2651791)
 * [WP Extra File Types](https://wordpress.org/plugins/wp-extra-file-types/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-extra-file-types/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-extra-file-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-extra-file-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-extra-file-types/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [davide.airaghi](https://wordpress.org/support/users/davideairaghi/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/adding-mime-types-1/#post-5645166)
 * Status: resolved