Uploaded File Validation

Uploaded File Validation

Is there any way to validate a  file-type and size?

I'd really like my users to post only PDFs, JPEGs, or Google Docs under a certain size.

Cheers,
John Whitney