Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 86a1bdb

Browse files
authored
[client] Fix file upload from bundle (#60)
1 parent 62453df commit 86a1bdb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pycti/entities/opencti_stix_domain_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def add_file(self, **kwargs):
527527
else:
528528
self.opencti.log(
529529
"error",
530-
"[opencti_stix_domain_entity] Missing parameters: id or file_name or data",
530+
"[opencti_stix_domain_entity] Missing parameters: id or file_name",
531531
)
532532
return None
533533

pycti/utils/opencti_stix2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ def import_object(self, stix_object, update=False, types=None):
514514
if CustomProperties.FILES in stix_object:
515515
for file in stix_object[CustomProperties.FILES]:
516516
self.opencti.stix_domain_entity.add_file(
517+
id=stix_object_result["id"],
517518
file_name=file["name"],
518519
data=base64.b64decode(file["data"]),
519520
mime_type=file["mime_type"],

0 commit comments

Comments
 (0)