I’ve been trying to get this to work for a bunch of hours, countless googling has not resulted in anything helpful.
I was wondering if there was a way to validate on the variables inside of a form fileinput. So like in a form “upload” I want to make sure that upload[name] is not empty. Could I do this at all with Cakephp’s model validation?
There is no way in Cakephp to validate fileinput field.
You can do it by custom validation rules like below example
for view file
For model file