javascriptflashnode-webkitswfuploadnw.js

Is it possible to save a file such as .swf, .mp3, .txt, etc. without the "save as" prompt using javascript in a specific directory?


I am developing a node-webkit application. I would like to download a .swf file when I clicked a button and automatically save it to a specific directory. Right now, I can download it but a "save as" dialog is prompting. Is it possible to disable it and just automatically save it? Is this possible with javascript?


Solution

  • No. Otherwise malicious websites would be able to overwrite important files on your computer