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
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...