diff --git a/pykechain/models/property_reference.py b/pykechain/models/property_reference.py index 04ae631a..21bc9c91 100644 --- a/pykechain/models/property_reference.py +++ b/pykechain/models/property_reference.py @@ -366,11 +366,13 @@ def upload(self, data: Any) -> None: filepath=data, ) if self.has_validator(SingleReferenceValidator): + # we want to replace value self.value = [new_stored_file] else: - self.value = ( - self.value + [new_stored_file] if self.value else [new_stored_file] - ) + if self.value: + self.value.append(new_stored_file) + else: + self.value = [new_stored_file] class SignatureProperty(_ReferenceProperty):