Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
When calling /2/files/list_folder with include_media_info = true the API is returning an empty set on a folder that I know contains files. I can see the files in the Dropbox website and also in my desktop dropbox.
If I call /2/files/list_folder with include_media_info = false I get the listing of all the files in the folder as I expect.
I noticed the issue in my application today and can see the same behaviour when using the API Explorer. My application is built around using this media info so I am certain that the same calls were working previously.
Thanks for the clarification.
It would be helpful if that was explained clearly in the documentation.
I have to say that I think this is a very poor way for the API to respond in this case.
I understand that the media info might not exist yet.
That's fine. I appreciate that it could take time to generate.
However I think it is very misleading to return an empty entries array. That indicates that the folder is empty when it is clearly not true. That leaves my application thinking that this folder is empty and that there is nothing to see or do in this folder which is clearly not the case.
Would it not make more sense to return a normal listing dataset containing the same entries as would be returned if include_media_info=false but include something to indicate that the media_info is pending.
You could return something like this;
"entries": [ { ".tag": "file", "name": "myphoto.jpg", "path_lower": "/mypath/myphoto.jpg", "path_display": "/mypath/myphoto.jpg", "parent_shared_folder_id": "1234567890", "id": "id:abcdefghijklmn", "client_modified": "2015-09-30T09:08:43Z", "server_modified": "2017-02-28T15:15:33Z", "rev": "1234567890", "size": 5685499, "media_info": null, "sharing_info": { "read_only": false, "parent_shared_folder_id": "1234567890", "modified_by": "dbid:abcdefghijklmno" }, "content_hash": "1234567890abcdefghijklmno" } ]
At least that way my application can decide how to proceed.
I could flag files with media_info=null for later processing or I could download the images that are missing media_info and generate it myself.
Thanks for the report @rustoiy. That does sound like unexpected behavior. If you can share a few responses showing that empty entries list, including the has_more=true and cursor, that would be helpful for us to investigate. (You can share privately here if you'd prefer: https://www.dropbox.com/developers/contact )
Hi there!
If you need more help you can view your support options (expected response time for a 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!