Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 195 for Multipart (0.22 sec)

  1. cmd/erasure-multipart.go

    	return result, nil
    }
    
    // newMultipartUpload - wrapper for initializing a new multipart
    // request; returns a unique upload id.
    //
    // Internally this function creates 'uploads.json' associated for the
    // incoming object at
    // '.minio.sys/multipart/bucket/object/uploads.json' on all the
    // disks. `uploads.json` carries metadata regarding on-going multipart
    // operation(s) on the object.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  2. tests/test_multipart_installation.py

    from fastapi import FastAPI, File, Form, UploadFile
    from fastapi.dependencies.utils import (
        multipart_incorrect_install_error,
        multipart_not_installed_error,
    )
    
    
    def test_incorrect_multipart_installed_form(monkeypatch):
        monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False)
        with pytest.raises(RuntimeError, match=multipart_incorrect_install_error):
            app = FastAPI()
    
            @app.post("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  3. cmd/object-multipart-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    		}
    		// Set this for multipart only operations, we need to differentiate during
    		// decryption if the file was actually multipart or not.
    		encMetadata[ReservedMetadataPrefix+"Encrypted-Multipart"] = ""
    	}
    
    	// Extract metadata that needs to be saved.
    	metadata, err := extractMetadataFromReq(ctx, r)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  4. cmd/object-api-multipart_test.go

    	}
    	// Initiate Multipart Upload on the above created bucket.
    	res, err := obj.NewMultipartUpload(context.Background(), bucketNames[0], objectNames[0], opts)
    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	uploadIDs = append(uploadIDs, res.UploadID)
    
    	// Create multipart parts.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

      }
    
      @Test fun `parse from response body`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |--simple boundary--
          """.trimMargin()
            .replace("\n", "\r\n")
    
        val responseBody =
          multipart.toResponseBody(
            "application/multipart; boundary=\"simple boundary\"".toMediaType(),
          )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. .github/workflows/multipart/migrate.sh

    if [ $failed_count_site1 -ne 0 ]; then
    	echo "failed with multipart on site1 uploads"
    	exit 1
    fi
    
    if [ $failed_count_site2 -ne 0 ]; then
    	echo "failed with multipart on site2 uploads"
    	exit 1
    fi
    
    ./mc cp -r --quiet /usr/bin site1/testbucket/
    
    sleep 5
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 15:54:24 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. 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)
  8. internal/etag/etag_test.go

    		},
    		Multipart: must("a7d414b9133d6483d9a1c4e04e856e3b-2"),
    	},
    }
    
    func TestMultipart(t *testing.T) {
    	for i, test := range multipartTests {
    		if multipart := Multipart(test.ETags...); !Equal(multipart, test.Multipart) {
    			t.Fatalf("Test %d: got %q - want %q", i, multipart, test.Multipart)
    		}
    	}
    }
    
    var isEncryptedTests = []struct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

    import org.lastaflute.web.ruts.config.ModuleConfig;
    import org.lastaflute.web.ruts.multipart.MultipartFormFile;
    import org.lastaflute.web.ruts.multipart.MultipartRequestHandler;
    import org.lastaflute.web.ruts.multipart.MultipartRequestWrapper;
    import org.lastaflute.web.ruts.multipart.exception.MultipartExceededException;
    import org.lastaflute.web.util.LaServletContextUtil;
    
    /**
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

         */
        @JvmField
        val MIXED = "multipart/mixed".toMediaType()
    
        /**
         * The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the
         * semantics are different. In particular, each of the body parts is an "alternative" version of
         * the same information.
         */
        @JvmField
        val ALTERNATIVE = "multipart/alternative".toMediaType()
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
Back to top