Skip to content

Commit 47c6253

Browse files
authored
[core][fix] Multipart name (#2203)
1 parent 5d39d02 commit 47c6253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fixcore/fixcore/web/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ async def write_files(mpr: MultipartReader, tmp_dir: str) -> Dict[str, str]:
13891389
if isinstance(part, MultipartReader):
13901390
files.update(await write_files(part, tmp_dir))
13911391
elif isinstance(part, BodyPartReader):
1392-
name = part.filename
1392+
name = part.name
13931393
if not name:
13941394
raise AttributeError("Multipart request: content disposition name is required!")
13951395
path = os.path.join(tmp_dir, rnd_str()) # use random local path to avoid clashes

0 commit comments

Comments
 (0)