0

hi all i am using java script working with excel export download functionality download is working fine now my need is i want to rename the downloaded file name for example now excel name is download now i need to change into custom download help how to do and get custom name

here i attached my fiddle: https://jsfiddle.net/ode5d340/

jose
  • 1,044
  • 1
  • 12
  • 35
  • You can try this: [enter link description here](https://stackoverflow.com/questions/7717851/save-file-javascript-with-file-name) – Trần Hà Nguyễn Jun 19 '17 at 08:04
  • Possible duplicate of [Is there any way to specify a suggested filename when using data: URI?](https://stackoverflow.com/questions/283956/is-there-any-way-to-specify-a-suggested-filename-when-using-data-uri) – Roland Studer Jun 19 '17 at 09:08
  • they use a tag to download in button it's not working in my case @RolandStuder – jose Jun 19 '17 at 09:12
  • @jose Well actually the answers address, that the only solution is to use a tag (which does not have to be shown). So yes I would argue this is an exact duplicate. – Roland Studer Jun 19 '17 at 09:19
  • ok @RolandStuder i will remodify my question – jose Jun 19 '17 at 09:19
  • @jose: Why are the provided answers from the duplicate question not viable. It works fine, see https://jsfiddle.net/kpLrgjqq/ – Roland Studer Jun 19 '17 at 09:35
  • Thanks @RolandStuder – jose Jun 19 '17 at 09:46

0 Answers0