I am integrating the dropbox API in my application extension which is a filemanager. I need to check if the file saved on the dropbox server is an image or not.
Reason why i need is that i cache the whole directory tree on my local system and then user can navigate through the tree easily without sending API calls at every folder navigate request.
So i scan the whole tree on application start and write those file to the disk and while i do that i have to generate the thumbnails for the image files and i use the get_thumbnails_batch function to generate all the thumbnails once in the batch of 25 files at a time. But to do that i first need to sort out those files which are valid images but i can find any thing related, the get_metadata function also dont return any property through which i can check it.