Create File Size Limit for Neos Fusion Runtime Form

Hi everyone,

I am currently implementing a file-upload for my contact form. So far everything worked great, using the example given here.

However, there are two functions missing that I would like to add. First of all, a size limit for the uploaded file would be nice. I already thought about using th php.ini to enforce this, however this would not lead to correct error handling. My best guess is to implement a custom validator and add it to the schema. Unfortunately I cannot find documentation for adding a custom schema and am a bit lost where it’s best to start with this.
In addition and also related to this I would like to add error messages to the file input field, smiliar to a normal text input field with a string validator.

I would be really greatfull for some inspiration regarding any of these topics :slight_smile: !
Thanks in advance!