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

Function errEntityTooSmall

api-error-response.go:253–262  ·  view source on GitHub ↗

errEntityTooSmall - Input size is smaller than supported minimum.

(totalSize int64, bucketName, objectName string)

Source from the content-addressed store, hash-verified

251
252// errEntityTooSmall - Input size is smaller than supported minimum.
253func errEntityTooSmall(totalSize int64, bucketName, objectName string) error {
254 msg := fmt.Sprintf("Your proposed upload size ‘%d’ is below the minimum allowed object size ‘0B’ for single PUT operation.", totalSize)
255 return ErrorResponse{
256 StatusCode: http.StatusBadRequest,
257 Code: EntityTooSmall,
258 Message: msg,
259 BucketName: bucketName,
260 Key: objectName,
261 }
262}
263
264// errUnexpectedEOF - Unexpected end of file reached.
265func errUnexpectedEOF(totalRead, totalSize int64, bucketName, objectName string) error {

Callers 3

putObjectMethod · 0.85
uploadPartMethod · 0.85
TestErrEntityTooSmallFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestErrEntityTooSmallFunction · 0.68