[upload] Adding asserts