Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and drop does not work on MacOS #10

Open
seanrussell opened this issue Jan 7, 2021 · 0 comments
Open

Drag and drop does not work on MacOS #10

seanrussell opened this issue Jan 7, 2021 · 0 comments

Comments

@seanrussell
Copy link

seanrussell commented Jan 7, 2021

It appears that file.type is always empty for files with an .md or .markdown extension, so that the following always returns false:

const fileTypeIsSupported = (file) => {
    return ['text/plain', 'text/md'].includes(file.type);
};

Thus, the drop target always displays the red error color

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant