I'm using the .listFiles method to obtain my files. But how should the format on the second argument (queries) be?
const result = await storage.listFiles(
'bucketID', // bucketId
[{
name: 'filename'
}]
);
Link: https://appwrite.io/docs/references/cloud/client-web/storage
Storage - How to query <storage>.listFiles()
I tried
const result = await storage.listFiles(
'bucketId',
[
Query.contain("name", "file")
],
);
But it says that contain doesn't exist on type Query, but on this page it does: https://appwrite.io/docs/products/databases/queries
Try contains
Recommended threads
- Appwrite Sites: ERR_TOO_MANY_REDIRECTS o...
So, my domain was working perfectly fine with Vercel. I was using cloudflare CDN (still am) but CNAME was DNS-only. I switched over to appwrite, CNAME is still ...
- Project restoration button in console
The project restore button in console is taking no effect, i have tried several times and still nothing, it gives same popup if i reload
- 1.9.5 Migration problem
1.9.5 migration problem after run migration command only openruntimes-executor