Open NovaAppsInc opened 2 years ago
I am experiencing the same error.
ipcMain.on("downloadFile", async (event, data) => {
const { href, filename } = data;
DevLogger.log("**** Downloading file: " + path.join(app.getAppPath(), href);
const win = BrowserWindow.getFocusedWindow();
// Note: Both return 1, the browser window is NOT null
console.log(event.sender.id, win.id);
await download(win, href, {
openFolderWhenDone: true,
saveAs: true,
filename,
});
});
So I'm making a converter app with ffmpeg, and it with convert the file and so I will save that file into a folder called
converted
.so after it gets converted I try and download it using a the path of the converted file it would be like
converted/convert.file format selected by user*
and I get this error
I'm trying to do this through
renderer
tomain
from a stackoverflow question hererenderer:
main: