Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get mime type/metadata for specific media item #182

Open
martin-hewitt opened this issue Aug 18, 2014 · 2 comments
Open

How to get mime type/metadata for specific media item #182

martin-hewitt opened this issue Aug 18, 2014 · 2 comments
Labels

Comments

@martin-hewitt
Copy link

Working from https://buddycloud.org/wiki/Buddycloud_HTTP_API#.2F:channel.2Fmedia.2F:media, it seems that I can POST a media item with a bunch of metadata, and I can GET the file itself, but there's no indication of how I can get the metadata for the file.

If I'm looking to display an icon for some files, and a thumbnail for images, it would be good to know the file's metadata information before attempting to GET it.

@lloydwatkin
Copy link
Member

This is actually a media server question, but should be documented somewhere. Looking at the media server code here it seems the metadata URL is:

/{ENTITY_ARG}/{MEDIA_ARG}/metadata

I'd imagine this really should be using the HTTP verb OPTIONS rather than its own endpoint. Maybe this is something that should be coded up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants