Trying to sort out client side file validation.