Check a file's filesize before uploading it to the server.

From #6496.

Only do this if the browser supports checking a file's size. Older browsers do not allow this.
It does. The if (files) block ends before the if (passes) block, which contains that line now, begins.