How to detect CefBrowserHost::StartDownload errors?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to detect CefBrowserHost::StartDownload errors?

Postby juansoldi » Fri Jun 15, 2018 2:38 am

I'm currently using CefSharp's StartDownload method to download a file, which internally calls CefBrowserHost::StartDownload. The problem I'm having is that if I attempt to download an invalid file (for example in a domain that doesn't exist), StartDownload won't throw any error (I assume because CEF's StartDownload also won't throw an error). Also, CefSharp's DownloadHandler doesn't fire any method (and CefSharp's DownloadHandler just uses CEF's CefDownloadHandler internally so I assume this is also because CefDownloadHandler won't fire any method), so I'm not sure how to detect that there was an error. Is this possible?
juansoldi
Newbie
 
Posts: 5
Joined: Fri Jun 15, 2018 2:28 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 16 guests