User is prevented from opening files of the wrong file extension.