What is the difference between TYPE_NOT_ALLOWED and TYPE_MISMATCH?
TYPE_NOT_ALLOWED: the content is no accepted type at all.
TYPE_MISMATCH: the content is an accepted type, but not the one the file
name claims.
More: Uploading, Errors