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>();