validate file size in react