saveAs option doesn't work
iamisti opened this issue · 2 comments
iamisti commented
const win = BrowserWindow.getFocusedWindow();
const userDocumentPath = app.getPath("documents");
const pathToDestinationDir = `${userDocumentPath}/customfolder/${folder}`;
await download(win, url, {
saveAs: true,
});
no matter what I do, i dont get the save as dialog. The file just directly gets downloaded into my download folder. Anyone knows why?
papb commented
I assume you have const { download } = require('electron-dl')
somewhere, right?