Skip to content

Commit

Permalink
Merge pull request #596 from HackrHIVE/patch-1
Browse files Browse the repository at this point in the history
minor change in example (FormData)
  • Loading branch information
wendux authored Dec 13, 2019
2 parents fdf9fdd + bdb8760 commit f9009c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ dio.post("/info", data:{"id":5},
You can also send FormData with Dio, which will send data in the `multipart/form-data`, and it supports uploading files.

```dart
FormData formData = FormData.from({
FormData formData = FormData.fromMap({
"name": "wendux",
"age": 25,
"file": await MultipartFile.fromFile("./text.txt",filename: "upload.txt")
Expand Down

0 comments on commit f9009c9

Please sign in to comment.