Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

[SOLVED] Offer .exe files for download

Solved by Chris Jung View solution

Started by Christian 9 years ago · 5 replies · 2053 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 Marcel, 5 days ago
0 84 5 days ago
Support · by JakobDB, 6 days ago
1 90 5 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 229 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago