Uh oh!
There was an error while loading. Please reload this page.
bugfix/dart-dio/multipart-file-handling - #20106
Conversation
vasilich6107
commented
Nov 14, 2024
@jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
f7af624 to
641c1e3Compareahmednfwela
commented
Nov 14, 2024
Question is, should a |
vasilich6107
commented
Nov 14, 2024
Hey @ahmednfwela |
ahmednfwela
commented
Nov 14, 2024
well, this fix will still not fix the bug, since |
kaal-dam
commented
Dec 2, 2024
Hello, I stumbled upon this pull request while encountering this issue. In my case it was with From all my test before coming here looking it seems that the following schema : always result in a In addition |
vasilich6107
commented
Dec 2, 2024
Hey @kaal-dam probably we have to eliminate multiplart file from type mapping |
kaal-dam
commented
Feb 4, 2025
@vasilich6107 file download should most likely be handled as Uint8List but upload via multipart request should still be handled by MultipartFile in my opinion https://swagger.io/docs/specification/v3_0/describing-request-body/file-upload/ by definition MultipartFile are for upload purposes not really for download purposes. but that's just my opinion, hope you find a solution soon have a nice day |
Hey @kaal-dam |
vasilich6107
commented
Feb 4, 2025
There is an attempt to create new generator |
in case if we have
The code fails with Exception
cause
deserializedoes not have a case forMultipartFileThis PR added handling the
case 'MultipartFile':PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)