question

chandankesharwani-7005 avatar image
0 Votes"
chandankesharwani-7005 asked DanielZhang-MSFT commented

How to Change/Set the download default location of webview in c#

I have designed windows form application, in which i have implemented Webview.
In that i am navigating to different Url using webview.Navigate.
After navigating , i am downloading file from that url.
And file is downloading successfully, but it is downloading in default location i.e. C:\Users\XYZ\Downloads.

I want to change the default download location of webview.
Can we change the default download location of webview.
Or is there any other way to download at different location from webview.

Thanks for the help

windows-forms
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


How are you downloading file from that url?

0 Votes 0 ·

Actually i am passing canvas image url from javascript.
And catching the event in Nessagereceived event handler.
Than changing that url into byte array than writting the file

0 Votes 0 ·

Hi @chandankesharwani-7005,
You only need to change the default download location of the browser you are using.
Best Regards,
Daniel Zhang

0 Votes 0 ·
Show more comments

0 Answers