Skip to content

<input type='file' /> and special folders #8948

@arusakov

Description

@arusakov
  • Electron version: 1.6.2
  • Operating system: macOS 10.12.3

Actual behavior

I faced with strange behaviour of <input type='file' /> in Electron.
You can select special Macs' folders - app folders (for example /Applications/Calculator.app).
In Finder it looks like file, but it's directory!

Expected behavior

There are two possible ways.

  1. Chromeway (and Safari). In real Chrome you can select Calculator.app from <input type='file' />. But Chrome transparently created Calculator.app.zip and attached this archive to input.
  2. Firefox way. In Firefox you can not select any folders from <input type='file' />

How to reproduce

I have created simple fiddle for that https://jsfiddle.net/s7c7k33b/ for testing in different browsers and Electron

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions