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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...