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

RobFearnside's avatar
RobFearnside
New member | Level 2
5 years ago

Wildcard search

I'm writing an app where I'd like to be able to search for all video/image files in a particular folder.  For example, for the root I was imagining that I'd be able to post something like this to files/search_v2 :

 

{
   "options" : 
{ "file_categories": ["video", "image"] } }

 

but that fails because I haven't supplied a 'query' parameter.  If I supply this :

 

{
   "query" : "*",
   "options" : 
   {
      "file_categories": ["video", "image"]
   }
}

then there are no matches (presumbly because I have no files with an asterisk in the name).

 

Is it possible to search for files (or folders) without having to specify a 'query' (in order to find all files which match the supplied 'options' criteria)? 

 

 

  • No, unfortunately, the Dropbox API doesn't offer the ability to do a wildcard search like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

     

    While not ideal, as a workaround, you could list the full contents of the folder using /2/files/list_folder[/continue] and filter based on the file extension.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    No, unfortunately, the Dropbox API doesn't offer the ability to do a wildcard search like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

     

    While not ideal, as a workaround, you could list the full contents of the folder using /2/files/list_folder[/continue] and filter based on the file extension.

    • George g.'s avatar
      George g.
      New member | Level 2

      Isn't this the proposed solution for getting all files that have changed since a given date? I'm unclear how we can do that without being able to supply a wildcard. Is there another recommendation for achieving that?

    • HippoJens's avatar
      HippoJens
      New member | Level 2

      Any news on this ?

      Also in the User Frontend ?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 2 days ago
333 Following

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!