Hello everyone!
After many tries I found the following parameters working with the /api/upload/files
endpoint:
/api/upload/files?start=0&limit=4&withCount=true&filters[name][$contains]=something&filters[url][$contains]=something
Unfortunately withCount
is not working at all. Is there any other option besides querying all files to get the total count?
Why is this endpoint not behaving the same way the content type endpoints are? This is highly confusing and took my a long time to figure out.
Any help is appreciated!
System Information
- Node.js version: v16.13.0
- NPM version: 8.1.0
- Strapi version: 4.0.5
- Database: sqlite3/MySQL
- Operating system: macOS 12.1