Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for UploadFile (0.11 sec)

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

    ```
    
    ////
    
    Die Datei- und Formularfelder werden als Formulardaten hochgeladen, und Sie erhalten diese Dateien und Formularfelder.
    
    Und Sie können einige der Dateien als `bytes` und einige als `UploadFile` deklarieren.
    
    /// warning | "Achtung"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_files/test_tutorial001_an_py39.py

    @needs_py39
    def test_post_upload_file(tmp_path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"filename": "test.txt"}
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. 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
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_files/test_tutorial003.py

                                "title": "Files",
                                "type": "array",
                                "items": {"type": "string", "format": "binary"},
                                "description": "Multiple files as UploadFile",
                            }
                        },
                    },
                    "HTTPValidationError": {
                        "title": "HTTPValidationError",
                        "type": "object",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/storage/ItemForm.java

    import jakarta.validation.constraints.Size;
    
    public class ItemForm {
    
        public String path;
    
        @Size(max = 100)
        public String name;
    
        public MultipartFormFile uploadFile;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 916 bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/request-forms-and-files.md

    ファイルやフォームのパラメータは`Body`や`Query`の場合と同じように作成します:
    
    ```Python hl_lines="8"
    {!../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ファイルとフォームフィールドがフォームデータとしてアップロードされ、ファイルとフォームフィールドを受け取ります。
    
    また、いくつかのファイルを`bytes`として、いくつかのファイルを`UploadFile`として宣言することができます。
    
    /// warning | "注意"
    
    *path operation*で複数の`File`と`Form`パラメータを宣言することができますが、JSONとして受け取ることを期待している`Body`フィールドを宣言することはできません。なぜなら、リクエストのボディは`application/json`の代わりに`multipart/form-data`を使ってエンコードされているからです。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_files/test_tutorial003_an_py39.py

                                "title": "Files",
                                "type": "array",
                                "items": {"type": "string", "format": "binary"},
                                "description": "Multiple files as UploadFile",
                            }
                        },
                    },
                    "HTTPValidationError": {
                        "title": "HTTPValidationError",
                        "type": "object",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/admin/storage/admin_storage.jsp

                                                                    key="labels.storage_file"/></label>
                                                            <div class="form-inline col-sm-9">
                                                                <input type="file" name="uploadFile" id="uploadFile"  class="form-control-file"/>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu May 26 01:48:41 UTC 2022
    - 20.4K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/request-forms-and-files.md

    ```
    
    Os arquivos e campos de formulário serão carregados como dados de formulário e você receberá os arquivos e campos de formulário.
    
    E você pode declarar alguns dos arquivos como `bytes` e alguns como `UploadFile`.
    
    /// warning | "Aviso"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/request-forms-and-files.md

    ```Python hl_lines="8"
    {!../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    📁 &amp; 📨 🏑 🔜 📂 📨 📊 &amp; 👆 🔜 📨 📁 &amp; 📨 🏑.
    
    &amp; 👆 💪 📣 📁 `bytes` &amp; `UploadFile`.
    
    /// warning
    
    👆 💪 📣 💗 `File` &amp; `Form` 🔢 *➡ 🛠️*, ✋️ 👆 💪 🚫 📣 `Body` 🏑 👈 👆 ⌛ 📨 🎻, 📨 🔜 ✔️ 💪 🗜 ⚙️ `multipart/form-data` ↩️ `application/json`.
    
    👉 🚫 🚫 **FastAPI**, ⚫️ 🍕 🇺🇸🔍 🛠️.
    
    ///
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top