Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Get url of uploaded file

Started by Matt 9 years ago · 0 replies · 891 views
9 years ago

Hi there!
I created file upload section inside my admin area.

YAML
        header.custom.portsPositionFile:
          type: file
          destination: 'user/themes/hlg/uploads'
          label: Select file with port position list
          accept:
            - .pdf

Now I want to display url to this file inside standard html "a" tag. How to do that?

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 2 weeks ago
4 251 2 weeks ago
Support · by nwhitfield, 2 weeks ago
2 217 2 weeks ago
Support · by stell, 4 weeks ago
5 461 3 weeks ago
Support · by gravinator, 2 months ago
5 639 3 weeks ago
Support · by Gravver, 1 month ago
6 431 4 weeks ago