From 361fd007775de9a0e796a09f365a985014ee5083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 14 Apr 2019 22:24:31 +0400 Subject: [PATCH] :memo: Add note about Swagger UI and multi-part uploads --- docs/tutorial/request-files.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/tutorial/request-files.md b/docs/tutorial/request-files.md index 2e0c2f802..10dd16e32 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).