Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetContentChecksum (0.98 sec)

  1. cmd/object-api-options.go

    				Bucket: bucket,
    				Object: object,
    				Err:    fmt.Errorf("Unable to parse %s, failed with %w", xhttp.MinIOSourceMTime, err),
    			}
    		}
    	}
    
    	opts.WantChecksum, err = hash.GetContentChecksum(r.Header)
    	if err != nil {
    		return opts, err
    	}
    	opts.MTime = mtime
    	opts.UserDefined = make(map[string]string)
    	// Transfer SSEC key in opts.EncryptFn
    	if crypto.SSEC.IsRequested(r.Header) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:34:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. cmd/utils.go

    		want, err := base64.StdEncoding.DecodeString(mdFive)
    		if err != nil {
    			return false
    		}
    		r.Body = hash.NewChecker(r.Body, md5.New(), want, r.ContentLength)
    		return true
    	}
    	cs, err := hash.GetContentChecksum(r.Header)
    	if err != nil {
    		return false
    	}
    	if cs == nil || !cs.Type.IsSet() {
    		return false
    	}
    	if cs.Valid() && !cs.Type.Trailing() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    		apiErr.Description = fmt.Sprintf("%s (%v)", apiErr.Description, errors.New("The file or text content is missing"))
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    	checksum, err := hash.GetContentChecksum(formValues)
    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
    		apiErr.Description = fmt.Sprintf("%s (%v)", apiErr.Description, fmt.Errorf("Invalid checksum: %w", err))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.9K bytes
    - Viewed (0)
Back to top