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

File Input - accept mime type issue #25418

Open
vrgbrg opened this issue Sep 15, 2022 · 4 comments
Open

File Input - accept mime type issue #25418

vrgbrg opened this issue Sep 15, 2022 · 4 comments
Labels
needs-investigation A bug not 100% confirmed/fixed OS/Desktop OS/macOS

Comments

@vrgbrg
Copy link

vrgbrg commented Sep 15, 2022

Description

The issue appears with multiple file inputs. If I create several file inputs with different accept types and I clicked the first one, it offers me the correct files with the chosen file types, but after it if I click the second file input it shows me files with not chosen files types.
Example link: https://svelte.dev/repl/05b5ad6e811143868e36e8b68025b886?version=3.50.1

Steps to Reproduce

Example link: https://svelte.dev/repl/05b5ad6e811143868e36e8b68025b886?version=3.50.1
I have four file inputs with different file types: image/png, image/jpeg, application/pdf, text/csv

  1. I click on the first input's choose file. It should offer me files with image/png, image/jpeg type. It works correctly
  2. I click on the second input's choose file. It should offer me files with application/pdf type. It doesn't work correctly, it offers me other file types as well, for example zip, csv, jpg etc. It doesn't happen in other browsers.

Expected result:

The file input should offer files with the chosen file types.

Reproduces how often:

Everytime.

Brave version (brave://version info)

1.40.113 Chromium: 103.0.5060.114 (Official Build) (x86_64)
Revision | a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS | macOS Version 12.5.1 (Build 21G83)

Other Additional Information:

  • Is the issue reproducible on the latest version of Chrome? No, it works correctly in Chrome.
@gyurielf
Copy link

I can confirm.

@pitsi
Copy link

pitsi commented Sep 16, 2022

May I say that it works fine for me? The first file selection button only allows images to be uploaded, the second one only pdf files, the third one only csv files and the fourth one any file.
Screenshots upon request, because I have to create some folders and files first :P

Brave	1.43.93 Chromium: 105.0.5195.127 (Official Build) (64-bit) 
Revision	912488396852bf658ab32465980c0b93a3c27a83-refs/branch-heads/5195@{#1109}
OS	Linux

@gyurielf
Copy link

Might be an OS related issue ?

@rebron
Copy link
Collaborator

rebron commented Sep 23, 2022

Looks like it's working for me in the version below. I'm being offered pdf files and csv files and custom when clicking on the other two links.

Brave 1.44.97 Chromium: 106.0.5249.55 (Official Build) (arm64)
Revision 4d5f098fca6ab7f4b6b7c240be3d9593c2357709-refs/branch-heads/5249@{#531}
OS macOS Version 13.0 (Build 22A5342f)
JavaScript V8 10.6.194.11
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

@rebron rebron added the needs-investigation A bug not 100% confirmed/fixed label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation A bug not 100% confirmed/fixed OS/Desktop OS/macOS
Projects
None yet
Development

No branches or pull requests

4 participants