Implemented client-side validation of file size.