WKWebView + <input type="file">
WKWebView + <input type="file">
- Subject: WKWebView + <input type="file">
- From: patrick machielse <email@hidden>
- Date: Fri, 13 Feb 2015 20:39:52 +0100
We're using WKWebView in a OS X application to host a web application.
The web application uses a html element like this to let the user select local file paths:
<input type="file" name="open">
This should display a file dialog. However, it doesn't seem to work with WKWebView.
Also, the new WKUIDelegate protocol doesn't seem to have an equivalent to the the 'old' WebUIDelegate/WebView method:
- (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id<WebOpenPanelResultListener>)resultListener allowMultipleFiles:(BOOL)allowMultipleFiles;
Is there a way to configure WKWebView to make it work correctly with file <input>s?
There must be a way, this seems quite basic.
patrick
--
Patrick Machielse
Hieper Software
http://www.hieper.nl
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden