
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?

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

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.

[SOLVED] filtering files by file name
Recommended threads
- Flutter Google Auth (Access blocked: Thi...
It is working fine on web platform, but on Flutter I'm getting this error. Any option to fix, or this issue with AppWrite and need to use different option? Ac...
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
- implement caching
It it possible to cache response for few minutes? I dont want to create function or implement a whole reverse server just to cache it in somewhere ?
