0

how to save the json file to specific folder or depending on user choosing folder?Here i am using angular 5

Mariyam
  • 31
  • 2
  • 8

2 Answers2

0

You can't. You can't change the way browsers behave. Browsers are set the way users like it to be.

kgbph
  • 841
  • 1
  • 8
  • 26
0

As far as I know, this is not possible. Only the user can decide where he/she wants to save the file. I guess the reason your files gets downloaded to the downloads folder is that you've saved that option in your browser. Check out filesaver.js. You won't be able achieve what you want but it enables some cool nifty features.

Brion Mario
  • 111
  • 1
  • 5