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
gauravsc
7 years agoExplorer | Level 3
Getting null while using get_metadata?
Hi
I am trying to get metadata using "include_media_info" at
https://api.dropboxapi.com/2/files/get_metadata
of the file on dropbox. For the most files it is giving me correct metadata i.e. height and width. But there is some cases where i am getting null even if file type is jpeg. Are there any restrictions on size or dimentions for images/videos for which metadata can be or cannot be generated? Unfortunately i am unable to share url of that image here. The size of that image on disk is 25 MB and is 800 * 600.
Thanks for following up. The media information is a "best effort" process, so we can't guarantee that the system will be able to process every file.
It sounds like there is something about this file in particular that is preventing the system from processing it properly. I know you mentioned you can't share a URL of it here, but if you're able to share it privately we can try to take a look at what the issue is. I can't promise we'd be able to support it, but you can share it privately by opening an API ticket. (Please don't share it if it is at all sensitive though of course.)
- DBX_RobertDropbox Staff
When the media_info field is null in the response, is it random, meaning that sometimes media_info is returned for a specific file, and sometimes it is not for that same file? Or is it always a consiste file (or set of files) that never return media info?
- gauravscExplorer | Level 3
It is not random. For that specific file, it is never returned.
- Greg-DBDropbox Staff
Thanks for following up. The media information is a "best effort" process, so we can't guarantee that the system will be able to process every file.
It sounds like there is something about this file in particular that is preventing the system from processing it properly. I know you mentioned you can't share a URL of it here, but if you're able to share it privately we can try to take a look at what the issue is. I can't promise we'd be able to support it, but you can share it privately by opening an API ticket. (Please don't share it if it is at all sensitive though of course.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 15 minutes 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!