Back

[SOLVED] filtering files by file name

  • 0
  • Users
  • Flutter
  • Storage
Faisal7
3 Oct, 2023, 20:41

i have a bucket for user profile picture and each file name is the user id so now i want to get the specific file and filter it by the current logged in user e.g by providing the user id. I have looke into listFile method and taught i will get al the files and filter it by the name by my self but what if i have thousonds of files. is their any standard or better way to do so?

TL;DR
The user was looking for a way to filter files by file name in their user profile picture bucket. They discovered a query ("name") in the documentation for the listFiles method. This query allows them to filter the files more efficiently based on the file name.
Drake
3 Oct, 2023, 21:52

Look at the docs again. You can pass queries to filter: https://appwrite.io/docs/references/cloud/client-web/storage#listFiles

Faisal7
3 Oct, 2023, 22:08

yes thank you @Steven i have found the solution. I would have read it a little more carefully their was query ("name") exactly what i wanted.

Faisal7
3 Oct, 2023, 22:09

[SOLVED] filtering files by file name

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more