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

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.

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    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
    8 years ago

    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 Community Moderator rankDropbox Community Moderator
    8 years ago
    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 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!