[SOLVED] Offer .exe files for download

Hi,
I want to serve some .exe files for download, but Grav seems to somehow block them. When I try to upload them as Page Media, it says “Unsupported file type: exe”. When I directly upload the file into the pages folder and try to link to them like
Test file
a file not found error appears.
What am I doing wrong?

Have you tried addding .exe in the media section? -> https://learn.getgrav.org/content/content-types#custom-content-types

1 Like

Ok, I added the following block to the end of my system/config/media.yaml file (I could not extend user/config/media.yaml - didn’t work - so I needed to edit in /system/ directly):

    exe:
      type: file
      thumb: media/thumb.png
      mime: application/vnd.microsoft.portable-executable

I did not need to add a item.exe.twig however.

The aforementioned settings could also be made in the admin interface under Configuration -> Media -> Add item

Thanks for your help!

You may mark my answer as solution for that.

I’d be glad to. How do I do this?

There must be something in the post actions (the Actions below a post)