Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 961 for form (0.18 sec)

  1. docs/pt/docs/tutorial/request-forms.md

    ## Sobre "Campos de formulário"
    
    A forma como os formulários HTML (`<form></form>`) enviam os dados para o servidor normalmente usa uma codificação "especial" para esses dados, é diferente do JSON.
    
    O **FastAPI** fará a leitura desses dados no lugar certo em vez de JSON.
    
    !!! note "Detalhes técnicos"
        Os dados dos formulários são normalmente codificados usando o "tipo de mídia" `application/x-www-form-urlencoded`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/request-forms.md

        `Form` is a class that inherits directly from `Body`.
    
    !!! tip
        To declare form bodies, you need to use `Form` explicitly, because without it the parameters would be interpreted as query parameters or body (JSON) parameters.
    
    ## About "Form Fields"
    
    The way HTML forms (`<form></form>`) sends the data to the server normally uses a "special" encoding for that data, it's different from JSON.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/request-forms.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001.py!}
        ```
    
    ## `Form`-Parameter definieren
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:06:54 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/request-forms.md

    # 表单数据
    
    接收的不是 JSON,而是表单字段时,要使用 `Form`。
    
    !!! info "说明"
    
        要使用表单,需预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
        例如,`pip install python-multipart`。
    
    ## 导入 `Form`
    
    从 `fastapi` 导入 `Form`:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## 定义 `Form` 参数
    
    创建表单(`Form`)参数的方式与 `Body` 和 `Query` 一样:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/request-forms.md

    ## 🔃 "📨 🏑"
    
    🌌 🕸 📨 (`<form></form>`) 📨 💽 💽 🛎 ⚙️ "🎁" 🔢 👈 📊, ⚫️ 🎏 ⚪️➡️ 🎻.
    
    **FastAPI** 🔜 ⚒ 💭 ✍ 👈 📊 ⚪️➡️ ▶️️ 🥉 ↩️ 🎻.
    
    !!! note "📡 ℹ"
        📊 ⚪️➡️ 📨 🛎 🗜 ⚙️ "📻 🆎" `application/x-www-form-urlencoded`.
    
        ✋️ 🕐❔ 📨 🔌 📁, ⚫️ 🗜 `multipart/form-data`. 👆 🔜 ✍ 🔃 🚚 📁 ⏭ 📃.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/request-forms.md

    Когда вам нужно получить поля формы вместо JSON, вы можете использовать `Form`.
    
    !!! info "Дополнительная информация"
        Чтобы использовать формы, сначала установите <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
        Например, выполните команду `pip install python-multipart`.
    
    ## Импорт `Form`
    
    Импортируйте `Form` из `fastapi`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="3"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/request-forms-and-files.md

        ```
    
    The files and form fields will be uploaded as form data and you will receive the files and form fields.
    
    And you can declare some of the files as `bytes` and some as `UploadFile`.
    
    !!! warning
    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)
  8. docs/pt/docs/tutorial/request-forms-and-files.md

        Você pode declarar vários parâmetros `File` e `Form` em uma *operação de caminho*, mas não é possível declarar campos `Body` para receber como JSON, pois a requisição terá o corpo codificado usando `multipart/form-data` ao invés de `application/json`.
    
        Isso não é uma limitação do **FastAPI** , é parte do protocolo HTTP.
    
    ## Recapitulando
    
    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)
  9. docs/zh/docs/tutorial/request-forms-and-files.md

    # 请求表单与文件
    
    FastAPI 支持同时使用 `File` 和 `Form` 定义文件和表单字段。
    
    !!! info "说明"
    
        接收上传文件或表单数据,要预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
        例如,`pip install python-multipart`。
    
    ## 导入 `File` 与 `Form`
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## 定义 `File` 与 `Form` 参数
    
    创建文件和表单参数的方式与 `Body` 和 `Query` 一样:
    
    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)
  10. docs/ko/docs/tutorial/request-forms-and-files.md

    # 폼 및 파일 요청
    
    `File` 과 `Form` 을 사용하여 파일과 폼을 함께 정의할 수 있습니다.
    
    !!! info "정보"
        파일과 폼 데이터를 함께, 또는 각각 업로드하기 위해 먼저 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>를 설치해야합니다.
    
        예 ) `pip install python-multipart`.
    
    ## `File` 및 `Form` 업로드
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## `File` 및 `Form` 매개변수 정의
    
    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)
Back to top