Merge "Get mime type from getDocumentType instead of from file name"