When you have a WKWebView in an OSX application, when you press a <input type="file">
button, you can't select a file from your harddisk. How would you enable this feature?
I heard that normally you use:
func webView(sender: WebView!, runOpenPanelForFileButtonWithResultListener resultListener: WebOpenPanelResultListener!)
Which is part of the WebUIDelegate
but altho you set self.webView.UIDelegate = self
it does not get fired.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…