Re: WKWebView Allow file selection button to select directories
Re: WKWebView Allow file selection button to select directories
- Subject: Re: WKWebView Allow file selection button to select directories
- From: Tim Fletcher <email@hidden>
- Date: Thu, 30 Jul 2015 15:23:20 +0100
Hi Uli,
I could definitively have been clearer…
The button is indeed displayed, but clicking has no effect. I would like the user to be able to open up a “Chose file” dialog that is only enabled for directories.
Can this be done somewhere in WKPreferences or WKWebViewConfiguration ?
However, the idea of just dropping the folder on a button, or drop zone of some sort is indeed a good workaround.
Cheers,
Tim
> On 30 Jul 2015, at 15:01, Uli Kusterer <email@hidden> wrote:
>
> On 30 Jul 2015, at 15:27, Tim Fletcher <email@hidden> wrote:
>> In a WKWebView I am rendering the following button
>>
>> <input type="file" webkitdirectory directory multiple>
>>
>> However this is not working. I have downloaded the latest version of Webkit.
>
>
> Define "this is not working". No "Choose" button shows up? You can't select a folder in the open panel that comes up? You can't drag a folder onto the button?
>
> When I try this in Safari, I get a button, and I can drag a folder on it, but the "Choose" button is disabled when I'm inside a folder. So to me it looks like a bug with a workaround (just drag-and-drop onto the button instead). Maybe you can theme it so it is just a "drop here" graphic instead of a button?
>
> Cheers,
> -- Uli Kusterer
> "The Witnesses of TeachtText are everywhere..."
>
>
>
_______________________________________________
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