Fixed: uploadedLength needs to be given a default value.