validate file types based on content_type instead of file name