Closed BelegUS closed 4 years ago
This was broken when fixing #18094. Changes made by @darkdef resulted in adding dot (.) to allowed extensions when comparing them to extension of file being uploaded. It's a problem on both:
.
file
extensions => ['csv', 'txt', '']
Validator (both client-side and server-side) should allow uploading such file, as it was prior to 2.0.36 Yii2 version
2.0.36
A wrongExtension failed validation message is shown - validation fails and doesn't allow uploading the file without extension.
wrongExtension
Thank you @darkdef and @samdark! :)
This was broken when fixing #18094. Changes made by @darkdef resulted in adding dot (
.
) to allowed extensions when comparing them to extension of file being uploaded. It's a problem on both:What steps will reproduce the problem?
file
validation rule withextensions => ['csv', 'txt', '']
configurationWhat is the expected result?
Validator (both client-side and server-side) should allow uploading such file, as it was prior to
2.0.36
Yii2 versionWhat do you get instead?
A
wrongExtension
failed validation message is shown - validation fails and doesn't allow uploading the file without extension.Additional info