<input type="file"> does not present an open file panel or expose an API method
Could you please describe the issue in more detail?
- What OS version, and which WebKit build are you using?
- What are the specific steps to reproduce?
- What API method are you talking about?
Created attachment 243499 [details]
Sample Xcode Project displaying the issue
The problem exists in Mac OS 10.10 when using WKWebView. With WebView there used to be a method - (void)webView:runOpenPanelForFileButtonWithResultListener:. This would allow you to implement an NSOpenPanel to select a file / files and then return to the result listener the filename for submission. I have attached a sample project which uses the WKWebView available in Mac OS 10.10. This project renders a input element and displays the choose file button, but you can see there is nothing to handle it. It seems this logic was added to the WebKit2 API for iOS but not for Mac OS.
Let me know if there is any additional information you require.
Thank you for the clarification!
Anders told me that this is a known issue, but I couldn't find an older bug in Bugzilla.
There it is, bug 137759.
*** This bug has been marked as a duplicate of bug 137759 ***