V4 - Count for files/uploads endpoint

Hello everyone!

After many tries I found the following parameters working with the /api/upload/files endpoint:


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