How can determine path for saveAs()Function javascript or typescript?

How can determine path for saveAs()Function javascript or typescript?



Q1: How can determine path for saveAs()Function javascript ?



I wanna after downloaded file I wanna select path such as



C:Usersfile-projectNamesrcassetsi18nen.json


const blob = new Blob([data], type : 'application/json');
saveAs( blob , 'en.json');



Q2: How can I save data in same file after download ?
such as


saveAs( blob , 'en.json');// new file
save( blob , 'en.json'); // same file




1 Answer
1



Thanks for contributing an answer to Stack Overflow!



But avoid …



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Malaysia to Papua New Guinea by motorcycle?

.name

List of Bhojpuri films