A little client-side file validation.