How to set default download directory?

904 views
Skip to first unread message

Christian LeMoussel

unread,
Apr 26, 2015, 5:19:42 AM4/26/15
to cefs...@googlegroups.com
Hi,

Is it possible to set default download directory that will be used in the download file dialog ?

Thanks,

Christian.

Jørn Hansen

unread,
Apr 26, 2015, 11:12:25 AM4/26/15
to cefs...@googlegroups.com
Documentation for the `downloadPath` parameter in the interface documentation (https://github.com/cefsharp/CefSharp/blob/v39.0.0/CefSharp/IDownloadHandler.cs#L13) leads me to think that you must implement your own dialog and then you can.

Does that work as a solution for you?

--
Best Regards,
JornH

Christian LeMoussel

unread,
Apr 26, 2015, 11:27:26 AM4/26/15
to cefs...@googlegroups.com
OK. I was looking for a default CEF setting parameter.

BR.

Christian.

Alex Maitland

unread,
Apr 27, 2015, 8:17:58 AM4/27/15
to cefs...@googlegroups.com
The documentation might be worded slightly incorrectly.

http://magpcss.org/ceforum/apidocs3/projects/%28default%29/CefBeforeDownloadCallback.html

`Set |download_path| to the full file path for the download including the file name or leave blank to use the suggested name and the default temp directory.`

So if you provide a path including the suggested filename that should be the default.......haven't tested in practice.
Reply all
Reply to author
Forward
0 new messages