From: Sebastián Ramírez Date: Sun, 14 Apr 2019 18:24:31 +0000 (+0400) Subject: :memo: Add note about Swagger UI and multi-part uploads X-Git-Tag: 0.16.0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=361fd007775de9a0e796a09f365a985014ee5083;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Add note about Swagger UI and multi-part uploads --- diff --git a/docs/tutorial/request-files.md b/docs/tutorial/request-files.md index 2e0c2f802a..10dd16e32f 100644 --- a/docs/tutorial/request-files.md +++ b/docs/tutorial/request-files.md @@ -121,6 +121,13 @@ To use that, declare a `List` of `bytes` or `UploadFile`: You will receive, as declared, a `list` of `bytes` or `UploadFile`s. +!!! note + Notice that, as of 2019-04-14, Swagger UI doesn't support multiple file uploads in the same form field. For more information, check #4276 and #3641. + + Nevertheless, **FastAPI** is already compatible with it, using the standard OpenAPI. + + So, whenever Swagger UI supports multi-file uploads, or any other tools that supports OpenAPI, they will be compatible with **FastAPI**. + ## Recap Use `File` to declare files to be uploaded as input parameters (as form data).