ui-components
ui-components copied to clipboard
[Bug]: GoAFileUploadInput "accept" property should be case-insensitive
Describe the bug
For the accept property, currently it's case-insensitive when filter, but case-sensitive when upload. we should make it case-insensitive for both, since both windows and Mac operating system is case-insensitive for file extension (means both .pdf and ,PDF can live in my file system)
Step to reproduce,
Provide Code
<GoAFileUploadInput onSelectFile={uploadFile} maxFileSize="1MB" accept="APPLICATION/PDF" />
To Reproduce
Have accept property as above. when click the upload button. file with .pdf will able to pass the accept filter, but when trying to upload it, we receive an "Invalid file type"
Relevant console log output
No response
What browsers are you seeing the problem on?
No response
Additional context
No response