Hi there I'm trying to download a local file on button click in VueJs
<a href="./documentation.docx" download>Download</a>
I have the documentation in the same folder as index
But when I'm trying to download, its saying No File
This should work properly as you've written it. It's essentially comes down to the given path, try something like this structure and this code (with an absolute path):
<a href="/azuki.jpg" download> download stuff </a>
Also, check the official documentation page here: https://cli.vuejs.org/guide/html-and-static-assets.html#the-public-folder
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.