Force file links to download?

  • 1
  • Question
  • Updated 5 years ago
Does anyone know how to force a file link to bring up a 'Save' dialog box on left click? Currently on my website left clicking a file will open it within the browser and you have to right click and select 'Save As' to download.

However this confuses some people, so I'm searching for a way to implement a one click / left click download. Maybe if there's a way through giving each link a class or applying this behavior to all of a file type?

There was some a topic about this 3 years ago, but it didn't really find a working solution and I was wondering if anyone had come up with any solutions since? Would need to work across most browsers.

Thanks! :)
Photo of Eyes Half Closed

Eyes Half Closed

  • 62 Posts
  • 17 Reply Likes

Posted 5 years ago

  • 1

There are no replies.