How to restrict the file size to be uploaded in ODK form

I would also like to know if this is possible as I'm about to allow users to add attachments at the end of a form and am worried about potentially massive uncompressed videos etc being added with no thought to bandwidth/hosting costs.

a max-pixels equivalent as max-kb or similar parameter, or a better yet a constraint that allows an error message when exceeded would do the trick if Collect is able to read the file size before it appends