check the size of the uploaded file