mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
multipart: reject part upload if size is less than 5MB. (#1518)
This commit is contained in:
committed by
Harshavardhana
parent
88e1c04259
commit
75320f70d0
@@ -458,6 +458,8 @@ func toAPIErrorCode(err error) (apiErr APIErrorCode) {
|
||||
apiErr = ErrWriteQuorum
|
||||
case InsufficientReadQuorum:
|
||||
apiErr = ErrReadQuorum
|
||||
case PartTooSmall:
|
||||
apiErr = ErrEntityTooSmall
|
||||
default:
|
||||
apiErr = ErrInternalError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user