The setup: you have a file field which allows only .txt files.
Steps to reproduce: Click "Upload" before you choose a file, then click choose a file, and choose a .jpg file. Nothing happens. There should be an error message that comes up explaining that a .jpg file is not valid for this field.