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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...