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

IsDragReject evaluating to true when accepting 'application/ld+json' file type #1346

Open
navacmo opened this issue Mar 7, 2024 · 0 comments
Labels

Comments

@navacmo
Copy link

navacmo commented Mar 7, 2024

Describe the bug
When using mime type 'application/ld+json' the isDragReject is emitting true.

To Reproduce
code sandbox example of the issue

Steps to reproduce the behavior:

  1. Pick a file with extension .json or .jsonl (JSONL is the new format for JSON with Lines)
  2. Try dragging the file into the drop box
  3. See the color of the dashed border turning red and file getting accepted by the input.

Expected behavior

  1. isDragReject should emit a false value.
  2. isDragAccept should emit a true value.

Screenshots
screenshot_of_the_issue

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version 122.0.6261.95

Additional context
See the mimetype information here. The input should accept application/ld+json for .jsonl extension
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

@navacmo navacmo added the bug label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant