Hello I’m using the web client sdk to get a list of all my files in a specific bucket, I get 27 as the total but 25 files in the response am I missing something. Where are the other two files?
This is because of the default Query.limit value, which is set to 25.
You can explicitly mention how many items you want, by using Query.limit(100) or something like that.
const promise = storage.listFiles(
'[BUCKET_ID]',
[ Query.limit(100) ]
);
Reference: https://appwrite.io/docs/queries
[SOLVED] listFiles returns only 25 files
Recommended threads
- execution failed
When executing an appwrite function, I'm getting a 500 error, but I don't see it in executions. This issue appeared today. Here's the appwrite function ID: 68b4...
- How to use appwrite types
I am using appwrite types --language ts ./types to generate the types yielding something like: ``` import type { Models } from 'node-appwrite'; // This file i...
- Dynamic Roles
I tried to store a row with this permissions: permissions.push( Permission.read(Role.users("verified")), Permission.write(Role.label(`c-${calend...