Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

schmidtc63's avatar
schmidtc63
New member | Level 2
1 month ago

list_folder is not returning media info

I am sending a request using this endpoint:
 https://api.dropboxapi.com/2/files/list_folder
And sending this data:

{ "path": "/Otter+Moon", "include_media_info": true, "include_has_explicit_shared_members": false, "include_mounted_folders": true }

However, the media info is not being returned. This means that I have to send individual 
https://api.dropboxapi.com/2/files/get_metadata
{ "path": "/Otter+Moon/EmmaWolf_OtterandMoon-1.jpg", "include_media_info": true } for each file in that directory.
Why? Why is the media  info not being returned on the initial request?

 

5 Replies

  • schmidtc63's avatar
    schmidtc63
    New member | Level 2
    1 month ago

    Ok...it's deprecated. Looks like we have to use /2/files/get_metadata_batch. Grrrr...

  • schmidtc63's avatar
    schmidtc63
    New member | Level 2
    1 month ago

    And that doesn't even work. get_metadata_batch doesn't seem to exist any more.

    Really, how hard can it be to pass the dimensions in the original file request if the file is an image?

     

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    1 month ago

    Hi schmidtc63​ 

    Just to clarify, neither /2/files/list_folder nor /2/files/get_metadata is deprecated. Were you maybe referring to /2/files/alpha/get_metadata?

    As far as /2/files/list_folder, this endpoint stopped returning MediaInfo back in 2019. I can certainly pass this along as a feature request. I can't promise if or when that might be implemented though.

    That said, /2/files/get_metadata should be returning MediaInfo, which would include dimensions for a photo file.

  • schmidtc63's avatar
    schmidtc63
    New member | Level 2
    1 month ago

    It would be nice to include that information on the list_folder request. Why force multiple queries when the information is there and easily accessible? Unless I'm missing something with overhead that makes it difficult or time-consuming. But if I need meta-data, I'm going to get it anyway using the get_metadata endpoint. More requests, more overhead. Same data.

     

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    1 month ago

    schmidtc63​ 

    We understand where you’re coming from.

    That feedback makes sense, and we’ll pass it along for consideration. We appreciate you taking the time to call this out and explain the impact it has on your implementation.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!