Add file extension sanity check