I want to save image on click, in a name that i want
I tried the solution suggested in a SO post
<a href="http://farm3.staticflickr.com/2881/10000610654_fdf29eb02f_q.jpg" download="myPreferredName.jpg">
<img src="http://farm3.staticflickr.com/2881/10000610654_fdf29eb02f_q.jpg" alt="Smiley face">
</a>
The problem that i am facing is, when i click on the image its downloading in the name "10000610654_fdf29eb02f_q.jpg" instead of "myPreferredName.jpg"
I am ok to use javascript,jquery or any other scripting