Fix a bug in detecting extension of filename
Say that contentId is optionnal in README