1

I have familly mkv files and would like to make when user click on "MyFamilly" tag to download myfamilly.mkv file...in chrome it open that file and i want it not to open just download file...here is my try:

<a href="ftp://myserverip/myfamilly.mkv" download>MyFamilly</a>

So how to force chrome to automatically download file not to open it?

Igor Petev
  • 597
  • 2
  • 6
  • 24
  • Possible duplicate of [Chrome Download Attribute not working](https://stackoverflow.com/questions/23872902/chrome-download-attribute-not-working) – mehulmpt Mar 18 '18 at 10:26
  • This is because of the latest chrome update. Chrome now blocks cross-origin downloads. [Ref : https://www.chromestatus.com/feature/4969697975992320 ] – Anto Joy Mar 25 '18 at 13:46

1 Answers1

0

try this :

<a href="ftp://myserverip/myfamilly.mkv" download="download">MyFamilly</a>

kevinniel
  • 1,088
  • 1
  • 6
  • 14
  • Thanks...but it opens mkv file in chrome...it does not download it...what version of chrome are you using? A upgraded chrome to lastest version yesterday and on new chrome version it opens it not download...so i im thinking that new chrome version have changed somthing in their code...my chrome version is: 65.0.3325.162 (Official Build) (64-bit) – Igor Petev Mar 18 '18 at 10:35