added filesize check to client-side code to prevent the user from trying to submit files that are too large