Added support for max file size checking on the client side.