The Milkman
Why does FileUpload not respect ->rules() ?
It seems that when specifying rules to a FileUpload field, it is not validated. Is that expected behaviour?
I know I probably should use
->acceptedFileTypes()
for this, but I actually want to validate the input on WOFF and WOFF2 font files.
Since acceptedFileTypes uses the front-end validator of Filepond, I can't use this, because browsers cannot resolve the correct mimetypes for these files...
So, I need to do some serverside validation. But how?10 replies