Commit de10343
committed
fix(iOS): Ensure MultiUploadTask filename is always a list
The `Uploader.swift` was incorrectly modifying the `filename`
property of a `MultiUploadTask` to a single string when only one file
was present. This caused a JSON deserialization error on the Dart side,
as `MultiUploadTask.fromJson` expects a list of strings.
This commit adds a check to ensure that the `filename` property is only
modified for regular `UploadTask`s, preserving the list format for
`MultiUploadTask`s regardless of the number of files.
Fixes #5101 parent dad28cc commit de10343
File tree
1 file changed
+1
-2
lines changed- ios/background_downloader/Sources/background_downloader
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
0 commit comments