There's already a DirectoryUploadEnabled preference for this that's enabled by default for GTK and WPE. We need a setting so apps can modify its value.
Pull request: https://github.com/WebKit/WebKit/pull/25623
This should be done through the new features API, and not with a dedicated one.