Ben
Ben

Reputation: 4110

WPF : download files through CefSharp

I'm using CefSharp 1 in my wpf app. How can I download files from sites through my embedded navigator ? When I click on a download link, nothing happens.

Upvotes: 2

Views: 4052

Answers (2)

jornh
jornh

Reputation: 1369

See answer in this thread in the CefSharp group

Upvotes: 2

penderi
penderi

Reputation: 9073

You may need to add a shceme handler for the 'file' protocol. That's what we did...

Register a scheme with CEF -

CEF.RegisterScheme("file", new HandlerFactory());

Add a scheme handler that loads the file from disk and returns a relevant response

Upvotes: 0

Related Questions