Supported File Type Info
Right now if I do a Get File Info I do not see--in the File object which gets returned--the file type nor any indicator field that this particular file is supported in the Box Viewer.
The only time it seems that I can find out if the file type is supported or not is when I make a call to generate the preview link...then I get the followjng error back:
{
"type": "error",
"status": 415,
"code": "unsupported_media_type",
"help_url": "http://developers.box.com/docs/#errors",
"message": "Previews for 'xyz' files are not yet supported.",
"request_id": "***number removed for privacy***859cc3e1a16efb"
}
The above is expected behaviour but I was wondering if there was a way to either find out a) the file type or b) if the file type is supported before I attempt to generate the preview link. I took a look at the file version object and didn't see anything. I'm pretty sure that I reviewed some documentation which stated that either a) or b) were possible.
Anyone?
サインインしてコメントを残してください。
コメント
0件のコメント