]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Add note about Swagger UI and multi-part uploads
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 14 Apr 2019 18:24:31 +0000 (22:24 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sun, 14 Apr 2019 18:24:31 +0000 (22:24 +0400)
docs/tutorial/request-files.md

index 2e0c2f802af07fb48a3d5dd23050391e68f356e4..10dd16e32fb123474946ae7a1910f778c1f1cb08 100644 (file)
@@ -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 <a href="https://github.com/swagger-api/swagger-ui/issues/4276" target="_blank">#4276</a> and <a href="https://github.com/swagger-api/swagger-ui/issues/3641" target="_blank">#3641</a>.
+
+    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).