Skip to content

FileInputValidator accept is not case insensitive #97

Closed
@nischi

Description

@nischi

Hi @hackingharold

I realized that the accept Validator is not working like the accept attribute in HTML. The accept attribute is case insensitive but the accept Validator in FileInputValidator is case sensitive.

The parseAttribute function get the accept attribute value as lowercase and the check in isAcceptedByExtension works with endsWith which is case sensitive. So all files which has upper case file extension will be a wrong extension.

I will provide a pull request in the near future.

kind regards,
nischi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions