Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

[SOLVED] Offer .exe files for download

Solved by Chris Jung View solution

Started by Christian 9 years ago · 5 replies · 2282 views
9 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?

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

9 years ago

You may mark my answer as solution for that.

9 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 5 days ago
1 96 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago