Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for body (0.16 sec)

  1. docs/en/docs/tutorial/request-files.md

    !!! warning
        You can declare multiple `File` and `Form` parameters in a *path operation*, but you can't also declare `Body` fields that you expect to receive as JSON, as the request will have the body encoded using `multipart/form-data` instead of `application/json`.
    
        This is not a limitation of **FastAPI**, it's part of the HTTP protocol.
    
    ## Optional File Upload
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/request-files.md

    !!! warning "Achtung"
        Sie können mehrere `File`- und `Form`-Parameter in einer *Pfadoperation* deklarieren, aber Sie können nicht gleichzeitig auch `Body`-Felder deklarieren, welche Sie als JSON erwarten, da der Request den Body mittels `multipart/form-data` statt `application/json` kodiert.
    
        Das ist keine Limitation von **FastAPI**, sondern Teil des HTTP-Protokolls.
    
    ## Optionaler Datei-Upload
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:08 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-files.md

    ## 导入 `File`
    
    从 `fastapi` 导入 `File` 和 `UploadFile`:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    ## 定义 `File` 参数
    
    创建文件(`File`)参数的方式与 `Body` 和 `Form` 一样:
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    !!! info "说明"
    
        `File` 是直接继承自 `Form` 的类。
    
        注意,从 `fastapi` 导入的 `Query`、`Path`、`File` 等项,实际上是返回特定类的函数。
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/request-files.md

        ```Python hl_lines="1"
        {!> ../../../docs_src/request_files/tutorial001.py!}
        ```
    
    ## Определите параметры `File`
    
    Создайте параметры `File` так же, как вы это делаете для `Body` или `Form`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/request_files/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="8"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/request-files.md

    ## 🗄 `File`
    
    🗄 `File` & `UploadFile` ⚪️➡️ `fastapi`:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    ## 🔬 `File` 🔢
    
    ✍ 📁 🔢 🎏 🌌 👆 🔜 `Body` ⚖️ `Form`:
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    !!! info
        `File` 🎓 👈 😖 🔗 ⚪️➡️ `Form`.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/request-files.md

    ## `File` 임포트
    
    `fastapi` 에서 `File` 과 `UploadFile` 을 임포트 합니다:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    ## `File` 매개변수 정의
    
    `Body` 및 `Form` 과 동일한 방식으로 파일의 매개변수를 생성합니다:
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    !!! info "정보"
        `File` 은 `Form` 으로부터 직접 상속된 클래스입니다.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top