Please add mime type for *.XPI (Firefox extensions) (3 posts)

  1. perlover
    Posted 5 years ago #

    Good day!

    I publish in my blog some patched XPI files (Add-ons for Firefox)
    And after update of WordPress i should update some config files for normal working of XPI files (as media uploading of this mime type file and to correct installation XPI files from blog's site)

    Please add this extension and mime type in next release of WordPress!
    I think this common trouble.

    Here patch:

    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    index 2f29f13..54830df 100644
    --- a/wp-includes/functions.php
    +++ b/wp-includes/functions.php
    @@ -2581,6 +2581,7 @@ function get_allowed_mime_types() {
                   'mkv' => 'video/x-matroska',
                   'rtf' => 'application/rtf',
                   'js' => 'application/javascript',
    +               'xpi' => 'application/x-xpinstall',
                   'pdf' => 'application/pdf',
                   'doc|docx' => 'application/msword',
                   'pot|pps|ppt|pptx|ppam|pptm|sldm|ppsm|potm' => 'application/vnd.ms-powerpoint',
  2. mehtuus
    Posted 4 years ago #

    More specifically you can do it with this plugin:

    AP Extended Mime Types
    Just edit the mime-type text file to add all the mime types you need.

    And this plugin adds icons to your mime type file links:

    MimeTypes Link Icons
    - (and temporarily available, a version [2.1.6] updated by me to include some additional file types and coding updates can be located here: http://fliiby.com/file/1143632/dx2xof48r83.html) The plugin maintainer has been made aware of these changes for hopeful inclusion in the next version.

Topic Closed

This topic has been closed to new replies.

About this Topic