You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
eouia
7 years agoNew member | Level 2
`filesSearchMatch` has no `media_info`?
I'm using Dropbox Javascript SDK.
In documentation, (http://dropbox.github.io/dropbox-sdk-js/global.html#FilesSearchMatch)
`FilesSearchMatch` could have `FilesFileMetadata` and, `FilesFileMetadata` could have `media_info` optionally.
But all my '.jpeg' photos which were taken from cameras(many kinds) have no `media_info` field in `metadata`.
Is it right?
That behavior is correct. The `media_info` isn't available in FilesFileMetadata in FilesSearchMatch, as retrieved by filesSearch, unfortunately, but I'll pass this along as a feature request.
If you want the `media_info`, you should retrieve the metadata using filesGetMetadata or filesListFolder/filesListFolderContinue, and set include_media_info to true, i.e., in FilesGetMetadataArg for filesGetMetadata or FilesListFolderArg for filesListFolder.
- Greg-DBDropbox Staff
That behavior is correct. The `media_info` isn't available in FilesFileMetadata in FilesSearchMatch, as retrieved by filesSearch, unfortunately, but I'll pass this along as a feature request.
If you want the `media_info`, you should retrieve the metadata using filesGetMetadata or filesListFolder/filesListFolderContinue, and set include_media_info to true, i.e., in FilesGetMetadataArg for filesGetMetadata or FilesListFolderArg for filesListFolder.
- eouiaNew member | Level 2Thank you. I changed my code to use `filesGetMetadata` additionally.
But I think if `FilesSearchMatch` could provide `media_info` also would be nicer.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!