Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 2,413 for farm (0.29 sec)

  1. 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` 一样:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/mime/multipart/formdata.go

    // memory.
    func (r *Reader) ReadForm(maxMemory int64) (*Form, error) {
    	return r.readForm(maxMemory)
    }
    
    var (
    	multipartfiles    = godebug.New("#multipartfiles") // TODO: document and remove #
    	multipartmaxparts = godebug.New("multipartmaxparts")
    )
    
    func (r *Reader) readForm(maxMemory int64) (_ *Form, err error) {
    	form := &Form{make(map[string][]string), make(map[string][]*FileHeader)}
    	var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/fileconfig/CreateForm.java

        @CustomSize(maxKey = "form.admin.max.input.size")
        public String paths;
    
        @CustomSize(maxKey = "form.admin.max.input.size")
        public String includedPaths;
    
        @CustomSize(maxKey = "form.admin.max.input.size")
        public String excludedPaths;
    
        @CustomSize(maxKey = "form.admin.max.input.size")
        public String includedDocPaths;
    
        @CustomSize(maxKey = "form.admin.max.input.size")
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/view/admin/maintenance/admin_maintenance.jsp

                                <div class="card-body">
                                    <div class="form-group row">
                                        <span class="font-weight-bold col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.replace_aliases"/></span>
                                        <div class="form-inline col-sm-9">
                                            <la:errors property="replaceAliases"/>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 16 12:54:35 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/view/admin/relatedcontent/admin_relatedcontent_edit.jsp

                                            <la:text styleId="term" property="term" styleClass="form-control"/>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="content" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.related_content_content"/></label>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 5.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/plugin/AdminPluginAction.java

        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse delete(final DeleteForm form) {
            validate(form, messages -> {}, () -> asHtml(path_AdminPlugin_AdminPluginJsp));
            verifyToken(() -> asHtml(path_AdminPlugin_AdminPluginJsp));
            final Artifact artifact = new Artifact(form.name, form.version, null);
            deleteArtifact(artifact);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

        public HtmlResponse editTags(final TagForm form) {
            validate(form, messages -> {}, () -> asEditTagsHtml(form.path, form.name));
            saveToken();
            return asEditTagsHtml(form.path, form.name);
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse updateTags(final TagForm form) {
            validate(form, messages -> {}, () -> asEditTagsHtml(form.path, form.name));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/request-forms-and-files.md

        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
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:07:35 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/mime/multipart/formdata_test.go

    	fr.tempDir = t.TempDir()
    	form, err := fr.ReadForm(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for i := 0; i < numFiles; i++ {
    		name := fmt.Sprint(i)
    		if got := len(form.File[name]); got != 1 {
    			t.Fatalf("form.File[%q] has %v entries, want 1", name, got)
    		}
    		fh := form.File[name][0]
    		file, err := fh.Open()
    		if err != nil {
    			t.Fatalf("form.File[%q].Open() = %v", name, err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. docs_src/request_files/tutorial002.py

    
    @app.get("/")
    async def main():
        content = """
    <body>
    <form action="/files/" enctype="multipart/form-data" method="post">
    <input name="files" type="file" multiple>
    <input type="submit">
    </form>
    <form action="/uploadfiles/" enctype="multipart/form-data" method="post">
    <input name="files" type="file" multiple>
    <input type="submit">
    </form>
    </body>
        """
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 811 bytes
    - Viewed (0)
Back to top