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

I would like to restrict the size of a file (.pdf, .docx, .xlsx) to be uploaded to 2MB. I know how to restrict image in appearance with max-pixels=720. My problem is what is the syntax to restrict the file size for document upload. Thank you.