You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Download attribute on link elements not working inside of webview #1909
I have the same need (download a file from the renderer), i have currently implemented a download function like your suggestion using IPC in order to permit the renderer to ask to the main process to download a file by passing the URL, but the request need to be authenticated through session and cookie, there is a way to share the session and the cookie? Or using one chromium Download Manager plugin?
Best regards
Solved passing cookies to the main process from the renderer.
But i have found something else.... If in the main browserWindow from the dev tool i execute "window.location.assign(urlToPdfFile)' the window show the pdf file after the download because the disposition is inline, but if i do the same thing through window.open or by the main process through opening another BrowserWindow the page is blank.
changed the title [-]Download attribute on link elements not working[/-][+]Download attribute on link elements not working inside of webview[/+]on Jun 15, 2015
Activity
steelbrain commentedon Jun 9, 2015
I am not sure if downloads of any kind are implemented at the moment.
stefanjudis commentedon Jun 9, 2015
Okay, is there a getting started guide out there?
If it's desired to have this behavior I might spend some time digging into it. :)
zcbenz commentedon Jun 10, 2015
Currently you have to hook to the click event of the link and use
httpmodule together withfsto save the file to user's disk.straccio commentedon Jun 10, 2015
I have the same need (download a file from the renderer), i have currently implemented a download function like your suggestion using IPC in order to permit the renderer to ask to the main process to download a file by passing the URL, but the request need to be authenticated through session and cookie, there is a way to share the session and the cookie? Or using one chromium Download Manager plugin?
Best regards
Solved passing cookies to the main process from the renderer.
But i have found something else.... If in the main browserWindow from the dev tool i execute "window.location.assign(urlToPdfFile)' the window show the pdf file after the download because the disposition is inline, but if i do the same thing through window.open or by the main process through opening another BrowserWindow the page is blank.
[-]Download attribute on link elements not working[/-][+]Download attribute on link elements not working inside of webview[/+]