Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for UploadFile (0.4 seconds)

  1. tests/test_request_params/test_file/test_optional_list.py

    
    @app.post("/optional-list-uploadfile")
    async def read_optional_list_uploadfile(
        p: Annotated[list[UploadFile] | None, File()] = None,
    ):
        return {"file_size": [file.size for file in p] if p else None}
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/optional-list-bytes",
            "/optional-list-uploadfile",
        ],
    )
    def test_optional_list_schema(path: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  2. tests/test_request_params/test_file/test_required.py

    
    @app.post("/required-uploadfile", operation_id="required_uploadfile")
    async def read_required_uploadfile(p: Annotated[UploadFile, File()]):
        return {"file_size": p.size}
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/required-bytes",
            "/required-uploadfile",
        ],
    )
    def test_required_schema(path: str):
        openapi = app.openapi()
        body_model_name = get_body_model_name(openapi, path)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  3. tests/test_request_params/test_file/test_optional.py

    
    @app.post("/optional-uploadfile", operation_id="optional_uploadfile")
    async def read_optional_uploadfile(p: Annotated[UploadFile | None, File()] = None):
        return {"file_size": p.size if p else None}
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/optional-bytes",
            "/optional-uploadfile",
        ],
    )
    def test_optional_schema(path: str):
        openapi = app.openapi()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  4. tests/test_request_params/test_file/test_list.py

    
    @app.post("/list-uploadfile", operation_id="list_uploadfile")
    async def read_list_uploadfile(p: Annotated[list[UploadFile], File()]):
        return {"file_size": [file.size for file in p]}
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/list-bytes",
            "/list-uploadfile",
        ],
    )
    def test_list_schema(path: str):
        openapi = app.openapi()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

            File uploadFile;
            File expectedBaseDir;
            // normalize filename
            if (checkFileType(fileName, fessConfig.getSupportedUploadedMediaExtentionsAsArray())
                    && checkFileType(uploadedFileName, fessConfig.getSupportedUploadedMediaExtentionsAsArray())) {
                expectedBaseDir = new File(baseDir, "images");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 23 23:57:26 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  6. 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"/>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 20.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

            if (form.uploadFile == null) {
                throwValidationError(messages -> messages.addErrorsStorageNoUploadFile(GLOBAL), () -> asListHtml(form.path));
            }
            verifyToken(() -> asListHtml(form.path));
            try {
                uploadObject(getObjectName(form.path, form.uploadFile.getFileName()), form.uploadFile);
            } catch (final StorageException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  8. fastapi/dependencies/utils.py

    from starlette.concurrency import run_in_threadpool
    from starlette.datastructures import (
        FormData,
        Headers,
        ImmutableMultiDict,
        QueryParams,
        UploadFile,
    )
    from starlette.requests import HTTPConnection, Request
    from starlette.responses import Response
    from starlette.websockets import WebSocket
    from typing_inspection.typing_objects import is_typealiastype
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  9. docs/uk/docs/tutorial/request-files.md

    Але є кілька випадків, у яких вам може бути корисно використовувати `UploadFile`.
    
    ## Параметри файлу з `UploadFile` { #file-parameters-with-uploadfile }
    
    Визначте параметр файлу з типом `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[14] *}
    
    Використання `UploadFile` має кілька переваг перед `bytes`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 11K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/request-files.md

    Однако возможны случаи, когда использование `UploadFile` может оказаться полезным.
    
    ## Параметры файла с `UploadFile` { #file-parameters-with-uploadfile }
    
    Определите параметр файла с типом `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[14] *}
    
    Использование `UploadFile` имеет ряд преимуществ перед `bytes`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 11.4K bytes
    - Click Count (0)
Back to Top