Skip to content

Commit 74d29ec

Browse files
committed
Refine multipart-forms.adoc
See spring-projectsgh-36094
1 parent 9abe4b4 commit 74d29ec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

framework-docs/modules/ROOT/pages/web/webflux/controller/ann-methods/multipart-forms.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Kotlin::
4141
[source,kotlin,indent=0,subs="verbatim,quotes"]
4242
----
4343
class MyForm(
44-
val name: String,
45-
val file: FilePart)
44+
private val name: String,
45+
private val file: FilePart)
4646
4747
@Controller
4848
class FileUploadController {
@@ -104,7 +104,7 @@ Kotlin::
104104
----
105105
@PostMapping("/")
106106
fun handle(@RequestPart("meta-data") metadata: Part, // <1>
107-
@RequestPart("file-data") file: FilePart): String { // <2>
107+
@RequestPart("file-data") file: FilePart): String { // <2>
108108
// ...
109109
}
110110
----
@@ -170,7 +170,7 @@ Kotlin::
170170
----
171171
@PostMapping("/")
172172
fun handle(@Valid @RequestPart("meta-data") metadata: Mono<MetaData>): String {
173-
// ...
173+
// use one of the onError* operators...
174174
}
175175
----
176176
======

0 commit comments

Comments
 (0)