Skip to content

Commit f9009c9

Browse files
authored
Merge pull request cfug#596 from HackrHIVE/patch-1
minor change in example (FormData)
2 parents fdf9fdd + bdb8760 commit f9009c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ dio.post("/info", data:{"id":5},
576576
You can also send FormData with Dio, which will send data in the `multipart/form-data`, and it supports uploading files.
577577

578578
```dart
579-
FormData formData = FormData.from({
579+
FormData formData = FormData.fromMap({
580580
"name": "wendux",
581581
"age": 25,
582582
"file": await MultipartFile.fromFile("./text.txt",filename: "upload.txt")

0 commit comments

Comments
 (0)