RESOLVED DUPLICATE of bug 137759 Bug 139745
File Upload Support
https://bugs.webkit.org/show_bug.cgi?id=139745
Summary File Upload Support
Justin Schneck
Reported 2014-12-17 13:31:50 PST
<input type="file"> does not present an open file panel or expose an API method
Attachments
Sample Xcode Project displaying the issue (67.69 KB, application/zip)
2014-12-18 10:30 PST, Justin Schneck
no flags
Alexey Proskuryakov
Comment 1 2014-12-18 00:21:54 PST
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?
Justin Schneck
Comment 2 2014-12-18 10:30:51 PST
Created attachment 243499 [details] Sample Xcode Project displaying the issue
Justin Schneck
Comment 3 2014-12-18 11:18:20 PST
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.
Alexey Proskuryakov
Comment 4 2014-12-18 11:44:43 PST
Thank you for the clarification! Anders told me that this is a known issue, but I couldn't find an older bug in Bugzilla.
Alexey Proskuryakov
Comment 5 2014-12-18 11:46:47 PST
There it is, bug 137759. *** This bug has been marked as a duplicate of bug 137759 ***
Note You need to log in before you can comment on or make changes to this bug.