CDK-189: restrict max file size when uploading. Added file type filter while I was at it.