Forum Discussion

Marius78's avatar
Marius78
New Contributor
9 months ago

Providing files to download

I want to provide a pdf file that visitors can download. The link should be shown in a markdown file.

I tried some options but neighter of them worked. E.g.:

[pdf](../assets/termsOfUse.pdf)
or
<a href="../assets/termsOfUse.pdf" target="_blank">pdf</a>

Result was always "404 Page not found"

Any hints?

  • Thanks, for the feedback. Stoplight serves the files and website - so I don't control that.

    On another channel, I've started to ask the same question the Stoplight Support Team. According to their answer, providing files that can be downloaded, is not supported. 

  • Humashankar's avatar
    Humashankar
    Champion Level 3

    Hi Marius78 

    If your website is stored on a server, make sure the server is set up to share PDF files from the right folder.

    Sometimes, servers are set to stop people from accessing certain types of files for some reasons.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!

    Warm regards

     

  • Marius78's avatar
    Marius78
    New Contributor

    Thanks, for the feedback. Stoplight serves the files and website - so I don't control that.

    On another channel, I've started to ask the same question the Stoplight Support Team. According to their answer, providing files that can be downloaded, is not supported.