Skip to content

Commit 4ad096a

Browse files
iscai-msftCopilot
andcommitted
Add changeset for multipart filename fix
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3208a89 commit 4ad096a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: fix
3+
packages:
4+
- "@typespec/http-client-python"
5+
---
6+
7+
Synthesize filename in multipart Content-Disposition for bare file inputs. When callers pass bare bytes/str/IO instead of a (filename, content) tuple for multipart file fields, the `prepare_multipart_form_data` helper now wraps them with a synthesized filename so servers that require `filename=` in the Content-Disposition header no longer reject the upload.

0 commit comments

Comments
 (0)