• Resolved zkiller

    (@zkiller)


    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://www.ads-software.com/plugins/wp-extra-file-types/

Viewing 1 replies (of 1 total)
  • Plugin Author davide.airaghi

    (@davideairaghi)

    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.