I am trying to access a glft file, which is a 3d format
I have added this to the media.yaml config
glft:
type: file
thumb: media/thumb.png
mime: application/json
image: null
then added this to a template to access the file
{% set my_model1 = page.media['Tripod Grip.gltf'] %}
{% set my_model2 = page.find('/images/3d-viewer').media['Tripod Grip.gltf'] %}
<text src="{{ my_model1 }}"></text>
<text src="{{ my_model2 }}"></text>
I have nominated two places to check if it makes a difference, but it returns src unknown.
i swapped the glft with searching for a png and it works so the code seems ok
is there anything else i need to do to enable grav to access different file types