Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. docs/ru/docs/tutorial/request-forms-and-files.md

        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms_and_files/tutorial001.py!}
        ```
    
    ## Определите параметры `File` и `Form`
    
    Создайте параметры файла и формы таким же образом, как для `Body` или `Query`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="10-12"
        {!> ../../../docs_src/request_forms_and_files/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="9-11"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/request-forms-and-files.md

    And you can declare some of the files as `bytes` and some as `UploadFile`.
    
    !!! 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.
    
    ## Recap
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-forms-and-files.md

    ```
    
    ## 定义 `File` 与 `Form` 参数
    
    创建文件和表单参数的方式与 `Body` 和 `Query` 一样:
    
    ```Python hl_lines="8"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    文件和表单字段作为表单数据上传与接收。
    
    声明文件可以使用 `bytes` 或 `UploadFile` 。
    
    !!! warning "警告"
    
        可在一个*路径操作*中声明多个 `File` 与 `Form` 参数,但不能同时声明要接收 JSON 的 `Body` 字段。因为此时请求体的编码为 `multipart/form-data`,不是 `application/json`。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/request-forms-and-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.
    
    ## Zusammenfassung
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:07:35 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/request-forms-and-files.md

        예 ) `pip install python-multipart`.
    
    ## `File` 및 `Form` 업로드
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## `File` 및 `Form` 매개변수 정의
    
    `Body` 및 `Query`와 동일한 방식으로 파일과 폼의 매개변수를 생성합니다:
    
    ```Python hl_lines="8"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    파일과 폼 필드는 폼 데이터 형식으로 업로드되어 파일과 폼 필드로 전달됩니다.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/request-forms-and-files.md

    ```Python hl_lines="1"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## Defina parâmetros de `File` e `Form`
    
    Crie parâmetros de arquivo e formulário da mesma forma que você faria para `Body` ou `Query`:
    
    ```Python hl_lines="8"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/request-forms-and-files.md

    ```
    
    ## 🔬 `File` & `Form` 🔢
    
    ✍ 📁 & 📨 🔢 🎏 🌌 👆 🔜 `Body` ⚖️ `Query`:
    
    ```Python hl_lines="8"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    📁 & 📨 🏑 🔜 📂 📨 📊 & 👆 🔜 📨 📁 & 📨 🏑.
    
    & 👆 💪 📣 📁 `bytes` & `UploadFile`.
    
    !!! warning
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/request-forms-and-files.md

    ## `File`と`Form`のパラメータの定義
    
    ファイルやフォームのパラメータは`Body`や`Query`の場合と同じように作成します:
    
    ```Python hl_lines="8"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ファイルとフォームフィールドがフォームデータとしてアップロードされ、ファイルとフォームフィールドを受け取ります。
    
    また、いくつかのファイルを`bytes`として、いくつかのファイルを`UploadFile`として宣言することができます。
    
    !!! warning "注意"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 04:31:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top