@origami/plugin-media
Media plugin for OrigamiCMS
Last updated 2 years ago by tmatthias .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @origami/plugin-media 
SYNC missed versions from official npm registry.

Origami: Media Plugin

npm Travis Codecov

This plugin provides functionality to upload and serve media in Origami CMS. It's one of the core plugins bundled with Origami.

Installation

yarn add @origami/plugin-media

Usage

In your .origami file, add it to the plugins: .origami

{
    ...
    "plugins": {
        "media": {
            "location": "./media"
        }
    }
    ...
}

Once your app is running, it exposes the /media as a REST Resource GET /media: List of media items POST /media: Upload a file GET /media/:id Download a file DELETE /media/:id Delete a file

Configuration

location: Directory location of where to store the files

Moving forward / TODO

  • [ ] Add other service providers for storing files (AWS, Dropbox, etc
  • [ ] Add tests

Issues

If you find a bug, please file an issue on the issue tracker on GitHub.

Contributions

All pull requests and contributions are most welcome. Let's make the internet better!

Current Tags

  • 0.0.3-alpha.18                                ...           alpha (a year ago)
  • 0.0.3-alpha.13                                ...           latest (2 years ago)

3 Versions

  • 0.0.3-alpha.18                                ...           a year ago
  • 0.0.3-alpha.14                                ...           2 years ago
  • 0.0.3-alpha.13                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (13)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |