2

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.

jornh
  • 1,369
  • 13
  • 27
Ben
  • 3,972
  • 8
  • 43
  • 82

2 Answers2

2

See answer in this thread in the CefSharp group

AndyUK
  • 3,933
  • 7
  • 42
  • 44
jornh
  • 1,369
  • 13
  • 27
0

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

penderi
  • 8,673
  • 5
  • 45
  • 62