ui-components
ui-components copied to clipboard
FileUploadInput: "accept" property should be trim of space
Info
For the accept property, if there is a white space in front of the MINE Type, it will give invalid type error message.
Example:
-
accept="application/pdf, image/png"will give error message when you upload a png file (there is a white space in front of it) -
accept="application/pdf,image/png"will allow upload of png file
Review that this is still an issue before working on a fix
Acceptance Criteria
- Whitespace should not affect if a mimetype can be used in the
acceptproperty
@lizhuomeng71 Re-review this and verify if it's still an issue
Hi Team, it's still an issue for MINE type. like , image/png. but not for extension.
This has been reviewed, and still determined to be an issue, the story has been updated to reflect the exact issue
Before working on this issue, review to see if it is still an issue