Change the name of a file by JavaScript

0

I'm developing a system for downloading songs externally and for this I'm using the tag with the download attribute:

<a href="http://path/to/archive/music.mp3" download="new_name.mp3" />

But because it is an external file, I can not change the file name the way I want it, do you have a solution to download an external file with the name I set?

I need to change this file to be ClientSide because the name will be changed dynamically.

Example:

  

My domain is: link
  But the domain where the songs are is: link

I need to download the music from my domain through a link but changing the name of it

<a href="http://extern.com/songs/music.mp3" download="music_new_name.mp3" />

I can download the song but I can not change the name.

Thank you.

    
asked by anonymous 23.03.2018 / 22:12

0 answers