Allow checking of MIME type in AgaviUploadedFile, closes #1310