errEntityTooSmall - Input size is smaller than supported minimum.
(totalSize int64, bucketName, objectName string)
| 251 | |
| 252 | // errEntityTooSmall - Input size is smaller than supported minimum. |
| 253 | func 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. |
| 265 | func errUnexpectedEOF(totalRead, totalSize int64, bucketName, objectName string) error { |
no outgoing calls