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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...