cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

search dropbox folder

search dropbox folder

bbongrip
Helpful | Level 6
Go to solution

can anybody tell me a way to search a specific folder in dropbox to populate an array of strings with the filenames in that folder? Im trying to implement a way for users to search for a file in a dropbox folder.  

14 Replies 14

Greg-DB
Dropbox Staff
Go to solution
Yes, non-root paths in Dropbox API v2 should start with a "/", so you probably mean to use "/stuckbykev".

bbongrip
Helpful | Level 6
Go to solution
ok i fixed the path but now I'm getting this error in console:

dropbox error: [request-id b8af2a8c93122c3395135c31410fbdc8] API route error - {
".tag" = path;
path = {
".tag" = "not_found";
};
}

Greg-DB
Dropbox Staff
Go to solution

That error indicates that the specified path, in this case "/stuckbykev", wasn't found in the linked account. If it's your own account, you can log in to the Dropbox web site to verify this.

 

If you're using an app with the full Dropbox permission, that would just be a folder named "stuckbykev" in the root of your account.

 

If you're using an app with the app folder permission, that would be a folder named "stuckbykev" in the app folder for the app in your account, which is at /Apps/<APP_NAME> by default, for accounts with the English locale.

bbongrip
Helpful | Level 6
Go to solution
I finally got it! lol Thank you so much for you time and help. It has been greatly appreciated and a learning experience for me. I ended up using "//" as my path and it works perfect.
Cheers!
Kevin

Greg-DB
Dropbox Staff
Go to solution
I'm glad to hear you got this working. If you're trying to list the root though, the right value to supply is the empty string "" though.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    bbongrip Helpful | Level 6
What do Dropbox user levels mean?