0

I can download file(image/video) with custom name from same server using

<a href="img/a.jpg" download="test.jpg>

But can't download with a custom name when the src(href) is a remote source.

<a href="http://example.com/img/a.jpg" download="test.jpg> 

How to solve the problem?

I found the same type of problems here,but nothing solves my problem.

Subham
  • 1,414
  • 4
  • 17
  • 34
  • Possible duplicate of [HTML5 download attribute not working when downloading from another server, even when Access-Control-Allow-Origin is set to all (\*)](http://stackoverflow.com/questions/28318017/html5-download-attribute-not-working-when-downloading-from-another-server-even) – Prisoner Nov 02 '16 at 09:06
  • it's not working in chrome and firefox also – Subham Nov 02 '16 at 09:11

0 Answers0