Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

[SOLVED] Offer .exe files for download

Solved by Chris Jung View solution

Started by Christian 8 years ago · 5 replies · 1812 views
8 years ago

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?

8 years ago

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):

YAML
    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!

8 years ago

You may mark my answer as solution for that.

8 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago