ui-components icon indicating copy to clipboard operation
ui-components copied to clipboard

FileUploadInput: "accept" property should be trim of space

Open lizhuomeng71 opened this issue 1 year ago • 4 comments

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

  1. Whitespace should not affect if a mimetype can be used in the accept property

lizhuomeng71 avatar May 14 '24 22:05 lizhuomeng71

@lizhuomeng71 Re-review this and verify if it's still an issue

ArakTaiRoth avatar May 23 '24 20:05 ArakTaiRoth

Hi Team, it's still an issue for MINE type. like , image/png. but not for extension.

lizhuomeng71 avatar Jun 24 '24 23:06 lizhuomeng71

This has been reviewed, and still determined to be an issue, the story has been updated to reflect the exact issue

ArakTaiRoth avatar Jun 28 '24 21:06 ArakTaiRoth

Before working on this issue, review to see if it is still an issue

ArakTaiRoth avatar Sep 19 '24 20:09 ArakTaiRoth