the init size should be undefined instead of zero for uploading/downloading