The download
attribute, summarizing a lot is just a way to set the name of the downloadable element but it's the href
attribute the one that must point to the item you want to download.
This should work:
<a download={`Some Fancy Name`} href={`../../file.pdf`}>İndir</a>
Double-check the ../../file.pdf
path to ensure that is valid or that the file.pdf
belongs to that route.
The static folder replicates its internal structure to the public (/public
) one when the site builds. So, a structure like: /static/file.pdf
should be pointed as:
<a download={`Some Fancy Name`} href={`/file.pdf`}>İndir</a>
Since the static folder becomes the "root", the level 0.