Querying all uploaded files

Can i query all uploaded files across the site and pages in files field?

You could, but I don’t know if that’s a good idea performance-wise if you have a site with many pages

query: site.files.add(site.index.files)

thanks. i endup creating media pages and use it in other files fields :slight_smile: