diff --git a/upload-mime-types.php b/upload-mime-types.php
index bdf5e417916de3b9c3ef4f96bd327c6a69690188..6de0196259804d4d69a32aa09c655c49b6f5114e 100644
--- a/upload-mime-types.php
+++ b/upload-mime-types.php
@@ -27,3 +27,16 @@ add_filter( 'wp_check_filetype_and_ext', function( $types, $file, $filename, $mi
     }
     return $types;
 }, 1, 5);
+
+/* Allow upload of other MIME types.
+ *
+ * These are easier as there's no possibility of misidentification.
+ */
+function ai_mu_edit_upload_types($existing_mimes = array()) {
+    // allow .epub
+    $existing_mimes['epub'] = 'application/epub+zip';
+ 
+    return $existing_mimes;
+}
+
+add_filter('upload_mimes', 'ai_mu_edit_upload_types');