ataranto / CefSharp

.Net binding for the Chromium Embedded Framework
Other
62 stars 34 forks source link

File download link not working #14

Closed apn99 closed 11 years ago

apn99 commented 12 years ago

Any file download links clicked in the web browser control opens a blank window and nothing happens. I was expecting the file link to be downloaded by the browser based on the response headers(content-type). Is this something that can be fixed in cefsharp or we have to handle the downloads in the HandleBeforeResourceLoad handler?

ataranto commented 12 years ago

looks like you will have to implement CefRequestHandler::GetDownloadHandler(), and return a CefDownloadHandler that can receive the download data.

apn99 commented 12 years ago

thanks for your response. Due to time constraints and lack of my c++ skills, I found a work around, I did a process.start(downloadurl) in before popup handler which will perfom the file download after opening a link in a browser. For the time being, works for me..

ataranto commented 11 years ago

landed download support in ataranto/master