We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added an uploader for SVG files like this:
<vaadin-upload accept="image/svg+xml"
Because the regex is calculated incorrectly, it doesn't accept svg files.
Regex is calculated to be ^(image/svg+xml)$, but the + sign should be escaped here.
^(image/svg+xml)$
I can upload SVG files
<vaadin-upload accept="image/svg+xml"></vaadin-upload>
Vaadin version(s): 23.1.4 OS: MacOS 12.3.1 / Chrome 104.0.5112.101
Issue is not browser related
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
I added an uploader for SVG files like this:
Because the regex is calculated incorrectly, it doesn't accept svg files.
Regex is calculated to be
^(image/svg+xml)$
, but the + sign should be escaped here.Expected outcome
I can upload SVG files
Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): 23.1.4
OS: MacOS 12.3.1 / Chrome 104.0.5112.101
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: