Skip to content

Commit d2de1b0

Browse files
committed
fix: re-add filename parsing for sending string paths
1 parent eaacd1d commit d2de1b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interactions/api/http/http_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ def _process_payload(
280280
form_data.add_field(
281281
f"files[{index}]",
282282
file_data,
283+
filename=file.split(os.sep)[-1],
283284
content_type=get_file_mimetype(file_data),
284285
)
285286
if attachments:

0 commit comments

Comments
 (0)