Skip to content

Commit

Permalink
[core][fix] Multipart name (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Sep 23, 2024
1 parent 5d39d02 commit 47c6253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixcore/fixcore/web/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ async def write_files(mpr: MultipartReader, tmp_dir: str) -> Dict[str, str]:
if isinstance(part, MultipartReader):
files.update(await write_files(part, tmp_dir))
elif isinstance(part, BodyPartReader):
name = part.filename
name = part.name
if not name:
raise AttributeError("Multipart request: content disposition name is required!")
path = os.path.join(tmp_dir, rnd_str()) # use random local path to avoid clashes
Expand Down

0 comments on commit 47c6253

Please sign in to comment.