Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewChecksumType (0.12 sec)

  1. cmd/object-multipart-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    			return checkPreconditionsPUT(ctx, w, r, oi, opts)
    		}
    	}
    
    	checksumType := hash.NewChecksumType(r.Header.Get(xhttp.AmzChecksumAlgo))
    	if checksumType.Is(hash.ChecksumInvalid) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequestParameter), r.URL)
    		return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    	}
    
    	// Checksum type set when upload started.
    	var checksumType hash.ChecksumType
    	if cs := fi.Metadata[hash.MinIOMultipartChecksum]; cs != "" {
    		checksumType = hash.NewChecksumType(cs)
    		if opts.WantChecksum != nil && !opts.WantChecksum.Type.Is(checksumType) {
    			return oi, InvalidArgument{
    				Bucket: bucket,
    				Object: fi.Name,
    				Err:    fmt.Errorf("checksum type mismatch"),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
Back to top