This plugin provides functionality to upload and serve media in Origami CMS. It's one of the core plugins bundled with Origami.
yarn add origami-plugin-media
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
location
: Directory location of where to store the files
- Add other service providers for storing files (AWS, Dropbox, etc
- Add tests
If you find a bug, please file an issue on the issue tracker on GitHub.
All pull requests and contributions are most welcome. Let's make the internet better!