Hello,
I need to force the download when a user click on the sample link of a downloadable product. This is my a tag :
<a href="/fr/downloadable/download/linkSample/link_id/3/" download>test</a>
The problem is the href attribute because the link is not ended by a real filename, if the href is for example "/fr/downloadable/download/linkSample/link_id/3/test.txt" then the click triggers the download with the "Save as" popup.
Is someone has an idea to help me please ?
Regards,
Solved! Go to Solution.
The solution was the parameter Use Content-Disposition on attachement in catalog/downloadable Product options in backend. This was not a problem of development.
But what if we had this already, after updating from 1.9.2x to 1.9.4.3 the jpg and zip links doesn't download anymore, but excel and pdf does.
What else could be the problem?
var/cache cleared...