Lps 45067

Per Sergio suggestions, we used a more robust mimeType detection