I have a link that perfectly downloads a file:
<a ng-if="slide.link && slide.link != 'null' && slide.anexos_id" href="{{ slide.link }}" download="'{{ slide.anexos_name }}'" target="_blank">
<img ng-src='{{ slide.base64 }}' alt="{{slide.name}}" ng-href="" style="max-height: 625px" />
</a>
But I need to rename the file before the download, and the "download" attribute does not work, what do I do?