Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/main/docs/guide/httpServer/uploads.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Handling of file uploads has special treatment in Micronaut. Support is provided for streaming of uploads in a non-blocking manner through streaming uploads or completed uploads.

Enable multipart support by setting `micronaut.server.multipart.enabled` to `true` in your configuration file (e.g `application.yml`):

.Enabling multipart
[configuration]
----
micronaut:
server:
multipart:
enabled: true
----

To receive data from a multipart request, set the `consumes` argument of the method annotation to api:http.MediaType#MULTIPART_FORM_DATA[]. For example:

[source,java]
Expand Down
Loading