26 lines
702 B
ReStructuredText
26 lines
702 B
ReStructuredText
|
|
.. _-fileUpload-:
|
||
|
|
|
||
|
|
fileUpload
|
||
|
|
==========
|
||
|
|
|
||
|
|
Signature
|
||
|
|
---------
|
||
|
|
|
||
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/FileUploadDirectives.scala
|
||
|
|
:snippet: fileUpload
|
||
|
|
|
||
|
|
Description
|
||
|
|
-----------
|
||
|
|
Simple access to the stream of bytes for a file uploaded as a multipart form together with metadata
|
||
|
|
about the upload as extracted value.
|
||
|
|
|
||
|
|
If there is no field with the given name the request will be rejected, if there are multiple file parts
|
||
|
|
with the same name, the first one will be used and the subsequent ones ignored.
|
||
|
|
|
||
|
|
|
||
|
|
Example
|
||
|
|
-------
|
||
|
|
|
||
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/FileUploadDirectivesExamplesSpec.scala
|
||
|
|
:snippet: fileUpload
|