Skip to content

Application bundles can be selected in <input file="type"> file selector on macOS #13219

@miniak

Description

@miniak
  • Electron Version: master
  • Operating System (Platform and Version): macOS 10.13
  • Last known working Electron version: N/A

Expected Behavior
Application bundles cannot be selected as they are directories, not files

Actual behavior
Application bundles can be selected, but are not handled properly as they are not files

To Reproduce
in Electron default_app:

var input = document.createElement('input');
input.type = 'file';
input.click();

Additional Information

  • Firefox: uses [dialog setTreatsFilePackagesAsDirectories:YES]
  • Chrome & Safari: creates a ZIP file containing the bundle contents automatically

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions