I have a template that lists media files of a directory in a table and allow downloading them this way. Up to now I just used it for pdf documents and it worked quite well.
Now I want to extend this to also show non-media files, e.g. LibreOffice odt documents and unknown media formats, e.g. mkv containers. At the moment it doesn't even work with mp3 files, although they should be detected as media. I didn't change anything in the Grav default media.yaml config.
A simple
{% for file in page.media.files %}
<p>{{ file }}</p>
{% endfor %}
only shows known media files (e.g. pdf or svg), but no odt/mp3/mkv.
How can I achieve this?