You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
nischi
pushed a commit
to nischi/ngx-dropzone
that referenced
this issue
Nov 18, 2024
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 inisAcceptedByExtension
works withendsWith
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
The text was updated successfully, but these errors were encountered: