Could file info include file type?

8 views
Skip to first unread message

wasnotrice

unread,
Nov 15, 2007, 1:14:00 PM11/15/07
to DivShare API Developers
A request, please. It would be nice if the API returned an element
"file_type" with a value like "audio", so that you could know what
kind of embed tag to generate for that file. I'm planning to implement
this now by looking at the filename extension, but it would be simpler
and less error-prone to have it come straight through the api.

Thanks!

Eric


mamcx

unread,
Nov 19, 2007, 10:24:40 AM11/19/07
to DivShare API Developers
Or use a mime-type/mime-parse detect of your language...

wasnotrice

unread,
Nov 19, 2007, 2:13:13 PM11/19/07
to DivShare API Developers
I think that in order to generate a proper embed tag, I would need to
know the type before the file is requested, wouldn't I?

Either way, I think it's a natural attribute to include as part of the
API.
Reply all
Reply to author
Forward
0 new messages