Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MimeType validation error #148

Closed
juniwalk opened this issue Feb 15, 2024 · 2 comments
Closed

MimeType validation error #148

juniwalk opened this issue Feb 15, 2024 · 2 comments

Comments

@juniwalk
Copy link

Hi, me again with validation issues. :)

I had edge case where MimeType returned was null and Validator has failed because of strtolower call.

There should probably be return $mimeType ?? ''; so it is always string.

image

@xificurk
Copy link
Contributor

That's a bug in validator from nette/forms (see your stack trace). This would fail even with normal FileUploadControl. This needs to be addressed in Nette itself.

@juniwalk
Copy link
Author

@xificurk Oh I just thought that it was issue inside FileUploadControl. Alright thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants