errEntityTooLarge - Input size is larger than supported maximum.
(totalSize, maxObjectSize int64, bucketName, objectName string)
| 239 | |
| 240 | // errEntityTooLarge - Input size is larger than supported maximum. |
| 241 | func 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. |
| 253 | func errEntityTooSmall(totalSize int64, bucketName, objectName string) error { |
no outgoing calls