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

[Bug]: GoAFileUploadInput "accept" property should be case-insensitive

Open lizhuomeng71 opened this issue 1 year ago • 0 comments

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"

image

Relevant console log output

No response

What browsers are you seeing the problem on?

No response

Additional context

No response

lizhuomeng71 avatar May 14 '24 22:05 lizhuomeng71