check file size at client before upload.