K
K
kr_ilya2019-06-10 19:15:26
JavaScript
kr_ilya, 2019-06-10 19:15:26

Download attribute not working?

You need to download the file by clicking on the button. Working with vue.js
I did it like this:

<v-btn :href="links[n-1]" download depressed small color="primary">Скачать</v-btn>

In the page code it is:
<a href="https://instagram.fhel3-1.fna.fbcdn.net/vp/cbaaf187d55c753428523114e1905cf7/5D8B3A5A/t51.2885-15/e35/53083495_417794185456540_6498535349113356837_n.jpg?_nc_ht=instagram.fhel3-1.fna.fbcdn.net" class="instdwnl v-btn v-btn--depressed v-btn--small theme--light primary" download=""><div class="v-btn__content">Скачать</div></a>

I work on localhost (maybe important).
A click simply opens a link.
What is the reason? How to decide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2019-06-10
@kr_ilya

Are you testing in chrome? There is a problem with him https://stackoverflow.com/questions/49474775/chrom...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question