Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 94 for uploadable (0.11 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial001.py

    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        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"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_files/test_tutorial001_an.py

    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        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"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/ClassPath.java

      }
    
      /**
       * Returns all resources loadable from the current class path, including the class files of all
       * loadable classes but excluding the "META-INF/MANIFEST.MF" file.
       */
      public ImmutableSet<ResourceInfo> getResources() {
        return resources;
      }
    
      /**
       * Returns all classes loadable from the current class path.
       *
       * @since 16.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  4. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/promotion/PublishGradleDistributionFullBuild.kt

        init {
            steps {
                if (prepTask != null) {
                    buildStep(extraParameters, gitUserName, gitUserEmail, triggerName, prepTask, "uploadAll")
                    buildStep(extraParameters, gitUserName, gitUserEmail, triggerName, prepTask, promoteTask)
                } else {
                    buildStep(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 13 14:18:23 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. 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`。
    
        这不是 **FastAPI** 的问题,而是 HTTP 协议的规定。
    
    ## 小结
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/storage/ItemForm.java

    import org.lastaflute.web.ruts.multipart.MultipartFormFile;
    
    public class ItemForm {
    
        public String path;
    
        @Size(max = 100)
        public String name;
    
        public MultipartFormFile uploadFile;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 914 bytes
    - Viewed (0)
  8. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:07:35 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top