Regaez/grav-plugin-api

feat: allow for uploading of media data

Regaez opened this issue · 2 comments

Currently, there is no way to upload media such as images/pdfs etc to a page. A separate resource could be useful to separate the media from the page's data. Perhaps an endpoint such as:

  • POST /api/media, or
  • POST /api/images, or
  • POST /api/data

It could be great if you could create/edit media meta files via this endpoint, too.

See docs for more info regarding metafiles: https://learn.getgrav.org/16/content/media#metafiles

Closing as duplicate of #13