diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/guide/multipart.asciidoc | 2 | ||||
-rw-r--r-- | doc/src/manual/cowboy_req.read_part.asciidoc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/guide/multipart.asciidoc b/doc/src/guide/multipart.asciidoc index 77d263a..756d3b4 100644 --- a/doc/src/guide/multipart.asciidoc +++ b/doc/src/guide/multipart.asciidoc @@ -102,7 +102,7 @@ multipart(Req0) -> {data, _FieldName} -> {ok, _Body, Req2} = cowboy_req:read_part_body(Req1), Req2; - {file, _FieldName, _Filename, _CType, _CTransferEncoding} -> + {file, _FieldName, _Filename, _CType} -> stream_file(Req1) end, multipart(Req); diff --git a/doc/src/manual/cowboy_req.read_part.asciidoc b/doc/src/manual/cowboy_req.read_part.asciidoc index 0d689d8..fd21d4a 100644 --- a/doc/src/manual/cowboy_req.read_part.asciidoc +++ b/doc/src/manual/cowboy_req.read_part.asciidoc @@ -15,7 +15,7 @@ read_part(Req :: cowboy_req:req(), Opts) -> {ok, Headers, Req} | {done, Req} Opts :: cowboy_req:read_body_opts() -Headers :: cow_multipart:headers() +Headers :: #{binary() => binary()} ---- Read the next part of a multipart body. @@ -70,7 +70,7 @@ to 5 seconds. == Return value An `ok` tuple is returned containing the next part's headers -as a list of key/values. +as a map. A `done` tuple is returned if there are no more parts to read. |