Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2014-08-06 16:55:34

ashraf
Member
Registered: 2014-05-30
Posts: 18

Get Original File Format ?

Hi,

I would like to know if anyway to retrieve the file format (audio, video , Image ) using the API 6? i

Appreciate your kind help.

Thanks
Ash.

Offline

#2 2014-08-21 11:21:27

steve
Third Light Staff
Registered: 2013-06-06
Posts: 92

Re: Get Original File Format ?

Hi Ash,

Although it can't be achieved in a single call, you could consider using the AdvancedSearch to check whether an asset matches a particular file type:

http://yoursite.com/api/1.0/Search.AdvancedSearch/query=[{"fieldId":"2","conditionId":"3","value":"12345678"},{"fieldId":"19","conditionId":"-1","value":"-1"}]

This is equivalent to the GUI search conditions of:

Reference Number IS 12345678
AND
File type IS AN IMAGE All types

Then repeat for Audio(conditionId -2), video(conditionId -3) etc

Best Regards,
Steve

Offline

Board footer