Closed DManstrator closed 1 year ago
Possibly a regression caused by https://github.com/vaadin/web-components/pull/4641.
This issue was fixed by a PR in web components. The fix will be effective once it is released.
Thanks. And sorry for reporting it in the wrong place.
Description
I have a custom file extension, let's call it
.hello.world
.When I set it as an accepted file type of the Upload with
Upload#setAcceptedFileTypes
, corresponding files can be selected with the file chooser as expected.However, when choosing the file, the file is not added to the Upload and a
FileRejectedEvent
is thrown with the messageIncorrect File Type.
.I created a html test file to see if this is generally unsupported but doing it in plain HTML, it was possible. See the attached HTML file. input-file-text.html.txt
Expected outcome
I am able to successfully add a file with multiple dots in the file extension if it's set as an accepted file type.
Minimal reproducible example
Steps to reproduce
UploadDialog
and open it..txt
suffix (needed for GitHub): test-file.hello.world.txtEnvironment
Vaadin version(s): 23.2.16 (Currently not able to use VAADIN 23.3.X so a backport for 23.2.X would be nice.) OS: Windows 10
Browsers
Issue is not browser related