using System.Collections.Generic; using System.IO; namespace CefSharp.Example { public class TempFileDialogHandler : IDialogHandler { public bool OnFileDialog(IWebBrowser browser, CefFileDialogMode mode, string title, string defaultFileName, List acceptTypes, out List result) { result = new List { Path.GetRandomFileName() }; return true; } } }