MCPcopy
hub / github.com/minio/minio-go / errEntityTooLarge

Function errEntityTooLarge

api-error-response.go:241–250  ·  view source on GitHub ↗

errEntityTooLarge - Input size is larger than supported maximum.

(totalSize, maxObjectSize int64, bucketName, objectName string)

Source from the content-addressed store, hash-verified

239
240// errEntityTooLarge - Input size is larger than supported maximum.
241func errEntityTooLarge(totalSize, maxObjectSize int64, bucketName, objectName string) error {
242 msg := fmt.Sprintf("Your proposed upload size ‘%d’ exceeds the maximum allowed object size ‘%d’ for single PUT operation.", totalSize, maxObjectSize)
243 return ErrorResponse{
244 StatusCode: http.StatusBadRequest,
245 Code: EntityTooLarge,
246 Message: msg,
247 BucketName: bucketName,
248 Key: objectName,
249 }
250}
251
252// errEntityTooSmall - Input size is smaller than supported minimum.
253func errEntityTooSmall(totalSize int64, bucketName, objectName string) error {

Callers 6

PutObjectMethod · 0.85
OptimalPartInfoFunction · 0.85
putObjectMultipartMethod · 0.85
uploadPartMethod · 0.85
TestErrEntityTooLargeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestErrEntityTooLargeFunction · 0.68