Limiting Attachment size

Is there a way to limit attachment size? I think 40 MB is too liberal for my boneheaded users. They end up emailing each other movies.

If you are using PHP you can set a hidden field in your form and set it to

When you use PHP to upload, it will deny anything over this size… I think it’s in bytes… remember that it’s 1024bytes to 1kb.