From 45d273e13bd19a4b04d8f593ab610fbe4f146007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A5rtensson?= Date: Thu, 23 Apr 2020 08:07:52 +0200 Subject: [PATCH] The code example has too many brackets. I did the following change on line 24: Future postForm() async {} to Future postForm() async { --- source/docs/http/file_upload.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/http/file_upload.md b/source/docs/http/file_upload.md index a0c174ee7..0615fdbdd 100644 --- a/source/docs/http/file_upload.md +++ b/source/docs/http/file_upload.md @@ -21,7 +21,7 @@ class MyController extends ResourceController { } @Operation.post() - Future postForm() async {} + Future postForm() async { final boundary = request.raw.headers.contentType.parameters["boundary"]; final transformer = MimeMultipartTransformer(boundary); final bodyBytes = await request.body.decode>();