Forum Discussion

Adithya's avatar
Adithya
Explorer | Level 3
8 years ago
Solved

Can we able to filter the certain file types when fetching the file list in api v2 for iOS?

  • The Dropbox API doesn't offer a way to filter files by type on the server like this, but you can implement the filtering client-side.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The Dropbox API doesn't offer a way to filter files by type on the server like this, but you can implement the filtering client-side.
    • Adithya's avatar
      Adithya
      Explorer | Level 3

      Thanks for the reply.. But there is no information about the file type or mime type in the filemetadata object to filter the files as per our requirements. so, how can we achieve the filtering.. could you plz provide me the solution.?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        You should use the file's extension, e.g., from the 'name' or 'pathLower' property in the metadata, to check the type.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 3 hours ago
352 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!