Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jason Law
2020-12-06 12:07:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b65335a19e73f70cb390852900344535176b36dc
b65335a1
1 parent
d2aee52c
Handle for List field with native datatype
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
lib/get_connect/http/src/multipart/form_data.dart
lib/get_connect/http/src/multipart/form_data.dart
View file @
b65335a
...
...
@@ -13,6 +13,8 @@ class FormData {
files
.
add
(
MapEntry
(
key
,
value
));
}
else
if
(
value
is
List
<
MultipartFile
>)
{
files
.
addAll
(
value
.
map
((
e
)
=>
MapEntry
(
key
,
e
)));
}
else
if
(
value
is
List
)
{
fields
.
addAll
(
value
.
map
((
e
)
=>
MapEntry
(
key
,
e
.
toString
())));
}
else
{
fields
.
add
(
MapEntry
(
key
,
value
.
toString
()));
}
...
...
Please
register
or
login
to post a comment