Skip to content

Non-enumerable type field on file when dropping parent folder containing .docx file #7

@mishawakerman

Description

@mishawakerman

react-dropzone version: v0.1.8
browser: Chrome Version 72.0.3626.119

The change from v0.1.7 → v0.1.8 (and still broken in v0.1.9) appears to have broken the file type field returned on nested files when dropping a folder containing .docx files (it does not appear to effect all file types such as .pdf files).

In v0.1.8, when we drop a .docx file directly onto a Dropzone the file has the correct type field and everything works as expected. When we drop a folder containing the same file, the type field is 'non-enumarble/'greyed out' screenshot.

In our specific case, this prevents the file type from being set when we upload the file object with axios which results in validation errors.

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