Attachment type validation

It would be awesome to be able to limit uploads for an attachment field to specific file type. For example, to ensure that only PDFs are uploaded to a certain field