Hello,
On Chrome you have settings to set the download location or to always ask for this location.
But when I use the PB webbrowser control these settings are not used.
Is there a way to get these chrome settings, so I can re-use them in the PB webbrowser?
So I can set the downloadpath, the user wants?
Or is there a way to force the webbrowser to always ask where to save a file?
Thanks
; ----- Start Web Browser Settings Section. ----
[Browser Template]
CachePath= ; The folder that stores the web page cache, cookies etc.
UserDataPath= ; The folder that stores the user data dictionary.
DownloadPath= ; The default download path.
UserAgent= ; The User-Agent request header
ProxyAuto=1 ; Whether to use auto proxy detection( default 1=yes)
ProxyPacUrl= ; The URL of the server where the PAC file is located.
ProxyAddress= ; The address of the proxy server.
ProxyPort= ; The port of the proxy server.
ProxyUser= ; The user name that will be authenticated by the proxy server.
ProxyPassword= ; The password that will be authenticated by the proxy server.
My idea was to ask the user where to save the file in in the DownloadingStart event. And then set the downloadPath. But that is too late, you can’t change the downloadPath anymore. A BeforeDownloadingStart event could be useful for this. Or a way to know the user clicked on the download button.
Otherwise I’ll try the workaround Chris mentioned earlier. "Set downloadPath to temp folder, capture the file in the DownloadingStart and move it when it’s completed.". But the problem is that there is no DownloadEnd event. Only a DownloadingStateChanged event, that fires multiple times with a value of 100%.