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
- WEBP preview not working after upgrading...
Only with preview, I'm getting this error: {"message":"no decode delegate for this image format `WEBP' @ error\/blob.c\/BlobToImage\/481","code":400,"type":"sto...
- Storage usage keeps going up
I have a self-hosted instance running in production for over a year now. The deployment has seen multiple updates and migrations of Appwrite versions. What I ha...
- CORS error only on tables db api After u...
I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, g...