Closed angelxmoreno closed 11 months ago
Do we need a PR for the UploadValidationTrait to have fileIsOfMimeType? I could have sworn we had this at some point. Any reasons why it was removed?
UploadValidationTrait
fileIsOfMimeType
Never mind, adding this here as context:
CakeValidation can be used:
$validator->add('file', 'mimeType', ['foo']);
https://api.cakephp.org/4.4/class-Cake.Validation.Validation.html#mimeType()
Do we need a PR for the
UploadValidationTrait
to havefileIsOfMimeType
? I could have sworn we had this at some point. Any reasons why it was removed?