Guesses extenstion for file download