<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
  * 6.0.0-beta.4
* **Operating System:**
  * Windows 10(1809) 64bit
* **Last Known Working Electron version:**
  * 5.0.1

### Expected Behavior

Can not select local file using <input type="file">.

### Actual Behavior

Can select local file using <input type="file">.

### To Reproduce

1. Run this commands.

```sh
$ git clone https://github.com/agata/can-not-select-file.git
$ cd can-not-select-file
$ npm install
$ npm start
```
or download [Installer for the sample app](https://github.com/agata/can-not-select-file/blob/master/dist/Electron%20Setup%201.0.0.exe). Then Install and run it.

2. The app shows mozilla's page with example for <input type="file"> .

3. Click "Choose File" and select a local file. It can not select file. It keeps to show "No file choosen."

### Screenshots
<img width="1154" alt="electron-6 0 0-beta 4" src="https://user-images.githubusercontent.com/40473/58185299-c7a3b980-7ced-11e9-9aa4-1378afc91fde.png">

Screeencast: [Electron-6.0.0-beta.4.mov.zip](https://github.com/electron/electron/files/3207975/Electron-6.0.0-beta.4.mov.zip)

### Additional Information

- Can select a file on Mac OS + Electron 6.0.0-beta.4.
- Can select a file on Mac OS + Electron 5.0.1.
- Can select a file on Windows 10 + Electron 5.0.1.
- Can not select a file on Windows 10 + Electron 6.0.0-beta.4.

I couldn't use the fiel open dialog on Electron 6.0.0-beta.3. Because beta.3 has [this issue](https://github.com/electron/electron/pull/18341) . It was fixed the issue by Electron 6.0.0-beta.4.

atom/browser/ui/file_dialog_win.cc
const base::FilePath file_path) {
  std::wstring directory =
      IsDirectory(file_path) ? file_path.value() : file_path.DirName().value();
  ATL::CComPtr<IShellItem> folder_item;
  HRESULT hr = SHCreateItemFromParsingName(directory.c_str(), NULL,
                                           IID_PPV_ARGS(&folder_item));
  if (SUCCEEDED(hr))
    dialog->SetFolder(folder_item);
}
static HRESULT ShowFileDialog(IFileDialog* dialog,
                              const DialogSettings& settings) {
  atom::UnresponsiveSuppressor suppressor;
  HWND parent_window =
      settings.parent_window
          ? static_cast<atom::NativeWindowViews*>(settings.parent_window)
                ->GetAcceleratedWidget()
          : NULL;
  return dialog->Show(parent_window);
}
static void ApplySettings(IFileDialog* dialog, const DialogSettings& settings) {
  std::wstring file_part;
  if (!IsDirectory(settings.default_path))
    file_part = settings.default_path.BaseName().value();
  dialog->SetFileName(file_part.c_str());
  if (!settings.title.empty())
    dialog->SetTitle(base::UTF8ToUTF16(settings.title).c_str());
  if (!settings.button_label.empty())
    dialog->SetOkButtonLabel(base::UTF8ToUTF16(settings.button_label).c_str());