I was doing a project and I faced an issue with the attribute download
: I discovered that it isn't supported by Safari browser (according to documentation).
Here's a snippet:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<a href="http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded&a" download>Press to Download</a>
</body>
</html>
I searched a way to do it with pure Javascript
or Angular
, but I didn't find nothing. Would be great if someone had a solution.