• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WKWebView + <input type="file">
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: WKWebView + <input type="file">
      • From: email@hidden
  • Prev by Date: Delete empty Core Data entities from to-many relationship
  • Next by Date: Human-understandable process name
  • Previous by thread: Re: Delete empty Core Data entities from to-many relationship
  • Next by thread: Re: WKWebView + <input type="file">
  • Index(es):
    • Date
    • Thread