Display a warning if attempting to change a file extension