Try matching uploaded file type before defaulting to first official one