Home

Awesome

Media Manager

Media Manager is an open source web file manager and can be a nice alternative to Wordpress Media Manager, CKFinder, KCFinder, elFinder... It is still in its early stages, but feel free to use it, report bugs and contribute.

screenshot

This project use Javascript and :

Demo

https://www.iutbayonne.univ-pau.fr/~klevron/mm/

Features

Install

Client

<link href="mm.min.css" rel="stylesheet">
...
<script src="mm.min.js"></script>

Server

Media Manager is a client side tool, it will display files located on a server, it needs a web service to communicate with :

Usage

HTML

<div id="media-manager"></div>

JavaScript

new MM({
    el: '#media-manager',
    api: {
        baseUrl: 'https://server.com/api/',
        listUrl: 'list',
        downloadUrl: 'download',  // optional
        uploadUrl: 'upload',      // optional
        deleteUrl: 'delete'       // optional
    }
});

With input

HTML

<input type="text" id="file-input">
<div id="media-manager"></div>

JavaScript

new MM({
    el: '#media-manager',
    api: {
        baseUrl: 'https://server.com/api/',
        listUrl: 'list'
    },
    input: {
        el: '#file-input',
        multiple: false
    }
});

Options

el

basePath

api

api.baseUrl

api.listUrl

api.downloadUrl

api.uploadUrl

api.options

input

input.el

input.multiple

selected

onSelect(event)

showBreadcrumb

height