WordPress.org

Ready to get started?Download WordPress

Forums

File Uploads (2 posts)

  1. Keytard
    Member
    Posted 2 years ago #

    Hello,

    I am starting up a small music blog. It's mostly for remixes my friends and I do. The main site will host our work, but I am looking to make a SSL site where we can share source files. A key part of remixing/electronic music is sharing your source files with other people so they can remix your stuff.

    I want us to share with torrents. I've already got the tracker set up, how do I configure wp to allow uploads of *.torrent files?

    Or if wp can't torrent files; What's the best option for embedded iframes in wp?

    Thanks for your help

  2. You have to add mime-types :)

    I'm usually lazy and toss it into a mu-plugin file.

    <?php
    // Mimes
    
    add_filter('upload_mimes', 'add_custom_upload_mimes');
     function add_custom_upload_mimes($existing_mimes){
     $existing_mimes['epub'] = 'application/epub+zip'; //allow epub files
     return $existing_mimes;
     }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic