base: Validate the content type only for uploaded files in ContentTypeRestrictedFileField