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

[BUG] .aif/.aiff files incorrectly report mimetype when imported from file selector in chrome #1341

Open
Ryan-Sheehan opened this issue Feb 7, 2024 · 0 comments
Labels

Comments

@Ryan-Sheehan
Copy link

Describe the bug
Mimetype for .aif/.aiff files imported from file selector in chrome are incorrectly reported as empty. The mimetype is reported correctly in Brave and Safari and in Chrome when the file is instead dragged onto the dropzone instead of using file selector.

To Reproduce

In Chrome

  1. Get an .aif/.aiff file (One is also provided here)
  2. Drag and drop that file onto a dropzone (I am using the hook not the component)
<div {...getRootProps()}> 
   <input {...getInputProps()} />
   <button type="button" onClick={open}>
   Open File Dialog
   </button>
</div>
  1. See that the mimetype of the accepted file is correct ('audio/aiff')
  2. Use open() to open the file selector
  3. Select the same file that was just dropped
  4. See that mimetype is now the empty string ''

Expected behavior
Mimetype should be reported as 'audio/aiff' not ''

Screenshots
File from drag and drop
Screenshot 2024-02-07 at 3 39 17 PM

File from selector
Screenshot 2024-02-07 at 3 38 41 PM

Desktop:

  • OS: [macOS]
  • Browser [chrome]
  • Version [121.0.6167.139]
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