Yuvaleros/material-ui-dropzone

Mismatch between drag and actual file acceptance.

mattcorner opened this issue · 1 comments

Bug Report

Describe the bug

When accepting .xlsx files, a drag and drop of a .xlsx file shows the red error context, but allows dropping of the file (as it should).

Steps to reproduce

  1. https://codesandbox.io/s/eloquent-perlman-pnklw?file=/src/App.js:0-191
  2. Drag a valid .xlsx file, see red error. Dropping results in file being correctly accepted.

Expected behavior

No red error display on dragging a valid file.

Versions

  • OS: [e.g. iOS] Windows
  • Browser: [e.g. chrome, safari] Microsoft Edge
  • @material-ui/core version: [e.g. 4.9.2] Latest (see code sandbox)
  • material-ui-dropzone version: [e.g. 3.0.1] Latest (see code sandbox)

Nevermind, just seen the mime-type vs. file extension note in the docs.