Limit file size on upload fields

It would be great to have an option to limit the file size allowed on file upload fields.

For many integrations (eg, a form for a user to upload an avatar for an online profile), allowing the user to upload massive files creates massive problems.