Validate file size

Hi,

It would be very useful if you can add a validate user inputs option for file fields and give the option to limit file size (e.g. max. 5 MB).

Cheers!