added content type detection based on the file extension