Skip to content

[BUG] File path not available on Electron if clicking to select files #1249

@JuanIrache

Description

@JuanIrache

Describe the bug
Dragging files into the Electron app provides the absolute file path, clicking to select the files with a dialog does not

To Reproduce
Steps to reproduce the behavior:

  1. Clone minimal example https://github.com/JuanIrache/react-dropzone-electron-path-debug
  2. npm install
  3. npm run dev
  4. drag a file and see how the path prints correctly
  5. click to select a file and see how it does not

Expected behavior
The file path can be read

Desktop:

  • OS: macOS Ventura
  • Browser: Electron
  • Version: 20 and others

Additional context
This was working on react-dropzone@11, breaks on @12 and newer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions